Robert,
Here's my mod of the original Autocomplete Plug-in: http://www.pengoworks.com/workshop/jquery/autocomplete.htm It should provide you w/all the functionality you're looking for. -Dan _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert James Sent: Wednesday, March 21, 2007 6:01 PM To: jQuery Discussion. Subject: [jQuery] jQuery LiveSearch 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 discuss@jquery.com http://jquery.com/discuss/