Created
August 16, 2010 12:25
-
-
Save jdlrobson/526865 to your computer and use it in GitHub Desktop.
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
jQuery.ajaxSetup({ | |
beforeSend: function() { | |
console.log("in global ajax beforeSend"); | |
} | |
}); | |
console.log("Request one"); | |
var ajax = ajaxReq({ | |
url: "/", | |
beforeSend: function() { | |
console.log("hello default ajax"); | |
}, | |
success: function(xhr) { | |
console.log("success!"); | |
console.log("Request 2 ") | |
var ajax = ajaxReq({ | |
url: "/", | |
success: function(xhr) { | |
console.log("success 2!"); | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment