I'm wondering if anyone has any suggestions as to what the possible cause of the following might be.
I am using an autocomplete script with the following code:
if (that.currentAjaxRequest !== null) {
that.currentAjaxRequest.abort();
}
that.currentAjaxRequest = $.get(query_string,
function(data) {
that.doStuff(data);
}
);
The script is throttled. So there is a delay of about 300ms after every keystroke before a request gets sent.
This works just fine in my test environment. However I'm running into a situation in the live environment where, periodically, if requests get sent close to eachother (about ever 300ms), every once in awhile the latest request comes back empty. That is to say, data will be "undefined". I'm at a bit of a loss as to why this might be.
Any ideas?
Thanks!