Re: HTML_QuickForm_Liveseach Please comment, draft proposal
| From: | Giuseppe Dessì | 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: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 ?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 :)Did you test with more than one Livesearch element on the same form ?support the javascript ?It would also be nice to have a degrade version in case the browser doesn'tThis 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
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.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 ?
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 DessiI mean a way to disable the functionality in case XMLHTTPRequest is not supported by the browser.