#26142 [Fbk->Opn]: IE's autocompletion overlaps PHP.net's

From: Date: Wed, 31 Dec 2003 18:28:01 +0000
Subject: #26142 [Fbk->Opn]: IE's autocompletion overlaps PHP.net's
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-22786@lists.php.net to get a copy of this message
ID: 26142 User updated by: kester dot everts at wanadoo dot nl Reported By: kester dot everts at wanadoo dot nl -Status: Feedback +Status: Open Bug Type: Website problem Operating System: Windows * PHP Version: Irrelevant Assigned To: goba New Comment: I am sorry :( It does not work. But this time, it's something else. The script uses the focus event in which the autocomplete is set to "off". This event is "too late". MSIE already initialized its AutoCompletion data. Then, IE shows the list after double-clicking or pressing a key. I have tried the MSIE-specific focusin event, and, according to the MSDN documentation, fires before an element is focussed. This did not work either... It works only by setting it directly or by using an event that fires before the initialization, I have found so far. I do not know of an event that fires before this initialization, so I think you have to change the way autocomplete is switched on and off. *Suggestion* Maybe it is better to create an onChange event on the <select>. It checkes if "quickref" is selected and then disables autocomplete. And happy new year to you! Previous Comments: ------------------------------------------------------------------------ [2003-12-31 12:16:21] goba@php.net Some mirror sites already have the new code, thanks for the suggestion, and please provide feedback on whether it is working or not (check that you test the new script by searching for setAttribute in the /functions.js source code on the mirror site you test with)... Happy new year! ------------------------------------------------------------------------ [2003-12-31 10:56:35] goba@php.net Sounds good, since setAttribute is in DOM Level1, and is supported since IE4, which means it is portable enough :))) I'll update the site again... ------------------------------------------------------------------------ [2003-12-31 10:03:45] kester dot everts at wanadoo dot nl I am sorry to say... Test resulted negative. I took a look at your script. You used Fa.autocomplete="off". I tested this. It is correct and it should work, but somehow it does not. It is a bug in MSIE, I think. There is a workaround: Use Fa.setAttribute("autocomplete","off"). I succesfully tested this. ------------------------------------------------------------------------ [2003-12-31 06:58:42] goba@php.net I have added some more code to the JS to disable the autocomplete on the form too. Please test the new dropdown if it really disables the IE default autocomplete or not. ------------------------------------------------------------------------ [2003-11-05 13:18:37] goba@php.net Hm, we will do this with Javascript. Thanks for the tip. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26142 -- Edit this bug report at http://bugs.php.net/?id=26142&edit=1

« previous php.mirrors (#22786) next »