i have a backend written with php and a frontend on jQuery.. what i want to do:
- page contains several links with AJAX calls (each one has it's own sucess/error callbacks)
- php backend may return a reply something like this: {"must_relogin":true}
- i have to bind to some kind global AJAX event in jQuery to catch this response and do perform some my logic and to prevent any other callbacks
is it possible?
Thank you for help.
update
jQuery(document).ajaxComplete(function(a, b, c){
console.log(a, b, c);
b.abort();
return false; });