Onkeypress delay in AJAX livesearch
Posted 23 July 2006 - 10:13 AM
What i am experiencing some problems with is that the browser occaitionally freezes (firefox,ie etc - doesn't matter) probably due to problems handling the query results as the customer enters characters in the text field.
Now i have set it up so that it's needed at least two chars to actually start searching - but what i think would do things a little easier is to delay each keypress (onkeydown,keypress,keydown) so that the search holds a second or so before sending the http request just to limit the number of queries.
Can anyone point out a better solution than this ???
Posted 24 July 2006 - 04:28 PM
Posted 25 July 2006 - 02:00 PM
I think i will try to limit the onkey search to maximum 100 results in standard and make an optional more results button and see if that helps - actually it is working very nice and is actually quite fast too - better and better as i move along and continue fine-tuning it
Posted 25 July 2006 - 09:44 PM
Posted 25 July 2006 - 11:16 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users