I find myself putting this (simplified) code in a number of different javascript files:
$(document).ajaxError(function (e, xhr, settings, exception) {
alert('error in: ' +
settings.url + ' \\n' +
'error:\\n' + exception +
": " + xhr.responseText
);
});
is there any downside that someone can think of by just putting this in my Site.Master file once so I have a consistent solution to errors?. If I do that, is there anyway to override the behavior on a specific page?