jQuery check on wordchange rather than "change" trigger

Posted by benhowdle89 on Stack Overflow See other posts from Stack Overflow or by benhowdle89
Published on 2011-01-10T17:28:55Z Indexed on 2011/01/10 17:53 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

I have a input that the user types a search parameter into, at the moment i have it on keyup to do a POST ajax request to a PHP script that returns search results. however its firing off 50 billion (not literally) post requests in about 10 seconds (as the user types) which slows the whole experience down. Can i use jQuery to detect a "wordup" rather than "keyup" by detecting the use of the space bar?

Does this make sense?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX