Abort all jQuery AJAX requests globally

Viewed 25964

Is there a way to abort all Ajax requests globally without a handle on the request object?

The reason I ask is that we have quite a complex application where we are running a number of different Ajax requests in the background by using setTimeOut(). If the user clicks a certain button we need to halt all ongoing requests.

4 Answers
Related