Thanks Erik that did the trick!
- David Dexter
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Erik Beeson
Sent: Thursday, March 15, 2007 8:59 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Delay on keypress
You basically want to have a timer that
You basically want to have a timer that gets "canceled" if a key is
pressed before it executes. Something like this:
var search_timeout = undefined;
$(...).bind('keyup', function() {
if(search_timeout != undefined) {
clearTimeout(search_timeout);
}
var $thi
I'm trying to put together a live search input for an internal app I'm
working on and I can't seem to figure out how to delay the ajax call to only
fire if the user hasn't typed a character for half a second or so. That
way, the request isn't firing after every character is entered as the user
is