We are using a third-party management pack that has the ajaxError jQuery global event that we would like to configure. We do not want to update this JS file, but we want to somehow redefine it so that JQuery does not execute this event.
Is it possible?
EDIT: Third Party Code
ajaxError: function (element, eventName, xhr, status) { var prevented = this.trigger(element, eventName, { XMLHttpRequest: xhr, textStatus: status }); if (!prevented) { if (status == 'error' && xhr.status != '0') alert('Error! The requested URL returned ' + xhr.status + ' - ' + xhr.statusText); if (status == 'timeout') alert('Error! Server timeout.'); } }
I want to collapse a line starting with an if condition
javascript jquery
Dotnetday
source share