Re: HTML quickform - autocomplete

From: Date: Fri, 02 Dec 2005 14:54:15 +0000
Subject: Re: HTML quickform - autocomplete
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22133@lists.php.net to get a copy of this message
I am using it on IE 6 and it works as long as the element has "focus", if that is correct terminology. For example if the autocomplete field is the first field in a form and I add the following: <BODY onLoad="document.frmClientRptSelect.cust_id.focus()"> The autocomplete element 'cust_id' works fine. If the autocomplete element is the second field and the user tabs from the first field into the autocomplete field, all is well. However, if the user mouse clicks into the second field, it does not work. Is there any way to force "focus" on the field when the user mouse clicks into a text field? Justin Patrin <papercrane@gmail.com> 12/01/2005 10:32 PM Please respond to papercrane@reversefold.com To sam <sam@artworks.net.nz> cc pear-general@lists.php.net Subject Re: [PEAR] HTML quickform - autocomplete On 12/1/05, sam <sam@artworks.net.nz> wrote: > Justin Patrin wrote: > > On 11/30/05, sam <sam@artworks.net.nz> wrote: > >> Hi, > >> > >> I love this feature but unfortunately it doesn't work in Internet > >> Explorer 6. Does anyone know of a fix for this? > >> > > > > What autocomplete feature? In general browsers are things implementing > > autocomplete for text fields in forms. > > > > -- > > Justin Patrin > > This is a javascript autocomplete using an array of values to complete > what the user types -- I don't mean the browser's own autocomplete -- > like this: > > "Class Summary: HTML_QuickForm_autocomplete -- HTML class for a text > field with autocompletion feature." > Ah. You should have mentioned this in your original e-mail. > http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-autocomplete.php > > It is a custom element so understandably may not be perfect but it's > really cool and I want to use it! > PEAR packages should work in any recent browser. If this one doesn't open a bug report. -- Justin Patrin -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#22133) next »