#26142 [Fbk->Opn]: IE's autocompletion overlaps PHP.net's
| From: | kester dot everts at wanadoo dot nl | Date: | Thu, 01 Jan 2004 14:12:23 +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-22793@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:
Succesfully tested!
Here are the changes.
Add an event:
---------------
FA.onchange=FC;
---------------
Add function FC():
-----------------------------------------
function FC() {
if(FA.value=="quickref")
Fa.setAttribute("autocomplete", "off");
else
Fa.setAttribute("autocomplete", "on");
}
-----------------------------------------
Remove Fa.setAttribute() from FZ() and fh_EBlurT().
Run FC() at the end of the script:
-----
FC();
-----
That's all. Good luck!
Previous Comments:
------------------------------------------------------------------------
[2003-12-31 13:35:11] goba@php.net
Could you please try this out locally on your machine, and report
whether you have success. I have no IE to test...
------------------------------------------------------------------------
[2003-12-31 13:28:00] kester dot everts at wanadoo dot nl
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!
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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