2

I am sending an ajax request which is called on change event of a select box.Now what I want is that when a new request is sent to server, it will abort all the previous ajax requests as otherwise there will be a lot of ajax requests executing at the same time.I just want to execute only the latest request.

All help would be highly appreciable.

1

1 Answer 1

2

Abort Ajax requests using jQuery

Just store the XMLHttpRequests in an array and abort them one by one.

Not the answer you're looking for? Browse other questions tagged or ask your own question.