javascript kill ajax request
//This kill only the request
//If the server handled the request, the .abort() function won't kill it
var xhr = $.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function(msg){
alert( "Data Saved: " + msg );
}
});
//kill the request
xhr.abort()