Skip to content

Instantly share code, notes, and snippets.

@salgadobreno
Created July 28, 2013 08:23
Show Gist options
  • Save salgadobreno/6097928 to your computer and use it in GitHub Desktop.
Save salgadobreno/6097928 to your computer and use it in GitHub Desktop.
$(document).bind("ajax:before", function() {
console.log("ajax:before");
})
$(document).bind("ajax:beforeSend", function() {
console.log("ajax:beforeSend");
})
$(document).bind("ajax:success", function() {
console.log("ajax:success");
})
$(document).bind("ajax:complete", function() {
console.log("ajax:complete");
})
$(document).bind('ajax:error', function(){
console.log('ajax failed');
});
$(document).bind('ajax:success', function(){
console.log('ajax succeded');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment