Possible Duplicate:
Run javascript function when user finishes typing instead of on key up?
I wrote a quick live filter that will filter a long list of about ten thousand items. The children of each item have a host of meta data related to them. Descriptions, related documents, usefors, etc. I bring in a letter at a time and filter the page from there. If someone types too quickly the page may not keep up. I might receive then multiple IDS of tag-C if I were to type 'Cam' to quickly.
My question asks is there a way to limit the function call until keystrokes have stopped. Almost a hoverIntent of keystrokes.
Here is a quick fiddle I whipped up showing about what I am after, http://jsfiddle.net/kb8Hw/
But my code is a bit more complex. I have a longer list, limit it to a single letter at a time, and normalize the search string a bit more. Essentially each time this.value[0]
changes it returns to the server and grabs a new set of tags. From there I filter whats on the page using jquery.