Can anyone tell me how to check current a working/pending ajax request in jQuery or how to stop all pending request before sending a new ajax request?
I don't need to send multiple ajax requests.
Thanks.
Can anyone tell me how to check current a working/pending ajax request in jQuery or how to stop all pending request before sending a new ajax request?
I don't need to send multiple ajax requests.
Thanks.
To cancel the request you can use "abort" like the others suggest.
To check the status you can use triggers like beforeSend to know it was before sending. You can also use global triggers which might be helpful to keep track.
All the callbacks/triggers are well documented in JQuery's AJAX page.