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();
1.4m articles
1.4m replys
5 comments
57.0k users