All pastes #968429 Raw Edit

Mine

public text v1 · immutable
·published 2008-04-03 01:00 UTC
rendered paste body
 $.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 );
   }
   }
 });