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

From: Date: Thu, 01 Jan 2004 16:28:20 +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-22798@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 glad to say that it works okay now! Previous Comments: ------------------------------------------------------------------------ [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! ------------------------------------------------------------------------ [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! ------------------------------------------------------------------------ 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 (#22798) next »