I\'m trying to create a global handler that gets called before the ajax success callback. I do a lot of ajax calls with my app, and if it is an error I return a specific st
Here is the most basic example:
$.ajaxSetup({ success: function(data){ //default code here } });
Feel free to look up the documentation on $.ajaxSetup()
$.ajaxSetup()