php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26142 IE's autocompletion overlaps PHP.net's
Submitted: 2003-11-05 11:05 UTC Modified: 2004-01-02 16:31 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 2 (0.0%)
From: kester dot everts at wanadoo dot nl Assigned: goba (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Windows *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kester dot everts at wanadoo dot nl
New email:
PHP Version: OS:

 

 [2003-11-05 11:05 UTC] kester dot everts at wanadoo dot nl
Description:
------------
I am using IE6 with WinXP Pro. It also applies to all other MSIE browsers with AutoCompletion.
When using the PHP.net's auto completion, which works fine btw, IE overlaps this with its own AutoCompletion (only with AutoCompletion has been switched on, of course), because I have been at this website before and have searched for functions :)
It be easily solved by setting the autocompete attribute value to 'off'. See http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/autocomplete.asp.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-05 13:18 UTC] goba@php.net
Hm, we will do this with Javascript. Thanks for the tip.
 [2003-12-31 06:58 UTC] 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-12-31 10:03 UTC] 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 10:56 UTC] 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 12:16 UTC] 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 13:28 UTC] 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 13:35 UTC] 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...
 [2004-01-01 09:12 UTC] 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!
 [2004-01-01 09:32 UTC] 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 11:28 UTC] kester dot everts at wanadoo dot nl
I am glad to say that it works okay now!
 [2004-01-02 16:31 UTC] didou@php.net
so let's close it :)
 [2004-03-12 08:44 UTC] benny dot gommers at pandora dot be
Hello,

I couldn't help it to catch up to this forum. I try to find the propper way to create a auto completion search list. The values should be loaded from out a MySql database. Could anyone help me out on this ??

Best Regards,
Benny Gommers
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 12:00:01 2025 UTC