Skip to content

Instantly share code, notes, and snippets.

@marciobarrios
Created March 24, 2009 17:04
Show Gist options
  • Save marciobarrios/84218 to your computer and use it in GitHub Desktop.
Save marciobarrios/84218 to your computer and use it in GitHub Desktop.
Abortar petición AJAX en jQuery
var x = $.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function(msg){
alert( "Data Saved: " + msg );
}
});
//kill the request
x.abort()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment