[jQuery] Cancel Previous $.post request
Hi,
I am using the jquery + $.post to create an auto-suggest feature. I wanted to know if there is a way to cancel previous post requests.
For example this is how it is happening now..
User types in "<b>jquery</b>"
so my app sends request for <b>j, jq, jqu, jque, jquer, jquery</b> ....
and depending on which request is satisfied first it displays the result.
i want that once the user types in <b>"jqu"</b> the app should abort the request for "<b>jq</b>".
is that possible? that would be great help.. solving both inconsitency & time issue.<br clear="all">
--
Regards,
Chintan D. Tank
Graduate Student
Department of Computer Science
Indiana University, Bloomington.
<a href="http://www.cs.indiana.edu/~cdtank/">http://www.cs.indiana.edu/~cdtank/</a>