Re: HTML_QuickForm_Liveseach Please comment, draft proposal

From: Date: Fri, 14 Oct 2005 12:25:41 +0000
Subject: Re: HTML_QuickForm_Liveseach Please comment, draft proposal
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40184@lists.php.net to get a copy of this message
Bertrand Mansion wrote:
Giuseppe Dessì wrote:
Did you test with more than one Livesearch element on the same form ?
       
Yes, it work with more than one liveseach box in a single form. I just update the online example. You can put more than one form, each form with more than one livesearch box. The only features that have problem is the "disable" submit button. If a user is using only keyboard, must press the return button to make selection. The script disable it when you are make the selction....but when you have more than one form theare are some problem..the submit in this manner have all the same Id. I have to work around with javascript :)
When the field is edited, could you maybe just listen to all keypress and catch returns, instead of trying to disable the form submit buttons ?
It would also be nice to have a degrade version in case the browser doesn't
       
support the javascript ?
This package can do the work thanks to javascript code, using XMLHTTPRequest, so it's difficult think without ;)
I mean a way to disable the functionality in case XMLHTTPRequest is not supported by the browser. For example, you could maybe test if the required functionalities exist, if not go no further ? Bertrand Mansion Mamasam
When the field is edited, could you maybe just listen to all keypress and catch returns, instead of trying to disable the form submit buttons ?
It was the first method I used...but I dont remember why I taked another way....I'll study the problem...may be an error on the passed event variable...but no sure.
I mean a way to disable the functionality in case XMLHTTPRequest is not supported by the browser.
Ok I understood when the first mail was already sent :D I can test if browser support javascript, and if browser support the XMLHTTPRequest object.. But i dont know how to manage this field if the browser doesnt support this functionalities. 1) Dont display the field 2) A classic dropdown list with all elements 3) some ideas? thanks for support Giuseppe Dessi

« previous php.pear.dev (#40184) next »