Most of us have probably done this by now where you use an onKeyUp/onKeyDown to execute a search function which returns a few results into a DIV as users are typing their search query.
I'd like to make this a little less server-intensive, but not sure of the most efficient way to do it. Basically, rather than having the query executed EVERY TIME onKeyUp, I would like to do it based on a second of inactivity afterward.
So when the user is typing along normally nothing happens, but as soon as they STOP for one second, then the ajax event fires and shows them the results. Any ideas?