ajax post cancel request

Solutions on MaxInterview for ajax post cancel request by the best coders in the world

showing results for - "ajax post cancel request"
Emilio
09 Feb 2019
1var xhr = $.ajax({
2    type: "POST",
3    url: "some.php",
4    data: "name=John&location=Boston",
5    success: function(msg){
6       alert( "Data Saved: " + msg );
7    }
8});
9
10//kill the request
11xhr.abort()