Mine
public text v1 · immutable $.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
error: function(xmlhttprequest, status, errorthrown){
/* I have xmlhttprequest here*/
/* I can do stuff liek: */
xmlhttprequest.getResponseHeader('blah-bnlah');
alert( "Error: " + status );
success: function(msg, status){
/* I DO NOT have xmlhttprequest here*/
alert( "Data Saved: " + msg );
}
}
});