#26142 [Opn->Csd]: IE's autocompletion overlaps PHP.net's
| From: | didou@php.net | Date: | Fri, 02 Jan 2004 21:31:58 +0000 |
| Subject: | #26142 [Opn->Csd]: IE's autocompletion overlaps PHP.net's | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-22807@lists.php.net to get a copy of this message | ||
ID: 26142
Updated by: didou@php.net
Reported By: kester dot everts at wanadoo dot nl
-Status: Open
+Status: Closed
Bug Type: Website problem
Operating System: Windows *
PHP Version: Irrelevant
Assigned To: goba
New Comment:
so let's close it :)
Previous Comments:
------------------------------------------------------------------------
[2004-01-01 11:28:20] kester dot everts at wanadoo dot nl
I am glad to say that it works okay now!
------------------------------------------------------------------------
[2004-01-01 09:32:48] goba@php.net
Thanks, I have added the new code to the website, so we can test how it
works soon (after the code populates to mirror sites). Please get back
in some hours, or a day, hard-reload the search page, and test the new
code you have suggested :)
Thanks for your contribution, and have a happy new year!
------------------------------------------------------------------------
[2004-01-01 09:12:23] kester dot everts at wanadoo dot nl
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!
------------------------------------------------------------------------
[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!
------------------------------------------------------------------------
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