Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.1

Bug #14023 Filtering required on text input
Submitted: 2008-05-30 06:20 UTC
From: shangxiao Assigned: thesee
Status: Assigned Package: HTML_QuickForm_Livesearch (version 0.4.0)
PHP Version: 5.2.6 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 - 37 = ?

 
 [2008-05-30 06:20 UTC] shangxiao (David Sanders)
Description: ------------ Currently the text input is only filtered on what looks to be escape, arrow keys, and whatever 13 is. If I have the text field highlighted and I start pressing other control keys like control, shift, caps lock, alt, apple command, page up, page down, etc ... then unnecessary requests are sent to the ajax server. To cut down on the amount of network traffic and server requests, only visual characters should trigger a request.

Comments

 [2008-05-30 07:38 UTC] shangxiao (David Sanders)
Additionally, the delete button should be filtered if the text field is already empty, again to prevent more unnecessary requests and db queries.
 [2008-07-12 08:57 UTC] thesee (Giuseppe Dessi)
Yes, ity's a good thing to filter all keys but the visual. I'll patch for next release If the text is empty the request is not made. Is made if is set the SearchZero attribute option.