I'm using jquery for making ajax requests
$.ajax( url: "http://someurl.org", success: function() { ... } );
How can I manually stop my particular ajax request?
The $.ajax() method returns an object that could be used to do that:
$.ajax()
var xhr = $.ajax( url: "http://someurl.org", success: function() { ... } );
and then later when you want to stop the request:
xhr.abort();
2.1m questions
2.1m answers
60 comments
57.0k users