Created
March 24, 2009 17:04
-
-
Save marciobarrios/84218 to your computer and use it in GitHub Desktop.
Abortar petición AJAX en jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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