What's the best way to do a jQuery LiveSearch?

My main goal is to have very little latency between typing and request.  I
think the best way to do this is to trigger on keypress, not interval - but
I'm not sure the code.

Basically, I think a Live Search should do the following:

* Trigger on key press
* Cancel old requests after a new key has been pressed (is there a way to do
this?)
* Ignore old responses if we have a newer one (ie, even if the old one
arrives after the new one)
* Respect the method the forms' html says (it seems that ajaxSubmit and
ajaxForm don't do this - not sure of the fix)

I'm a jQuery newcomer, so please help me out.  If someone's already made a
good livesearch jQuery script - please let me know.  Otherwise, any tips on
how to do the above will be greatly appreciated!
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to