I'm using Yahoo Autocomplete with a remote php database request and zero time delay. The problem is that sometimes the results from an old query come back after the most recent query.

So far example if im searching for beginner, sometimes the results from 'beg' will override the most recent result in the autocomplete dropdown if that query takes the longest to return from the server.

I've tried aborting the old queries but that slows down the user experience as they do not get a server request until the last keystroke.

I was wondering if there is a way to order the queries that return? To make sure that the server response from the most recent query displays

Thanks in advance
David

Any chance of some help on the sequencing? My Yahoo autocomplete code is currently as below, I want to avoid doing the cancel stale requests.