0

I have have plenty of AJAX calls within the application, each of them have it's own error handler.

I'm looking for a way to avoid the error handler for a certain status.

When using the $.ajaxError, it's being called AFTER the handler of the individual AJAX was already executed.

Is there a way to abort executing the AJAX error event, in case of a specific status?

Thanks,

Tal.

RPichioli
  • 3,245
  • 2
  • 25
  • 29
Tal
  • 391
  • 2
  • 11
  • 2
    Can you provide some code please ? – Magicprog.fr Feb 07 '17 at 12:12
  • I think this is a similar question http://stackoverflow.com/questions/7436195/disabling-some-jquery-global-ajax-event-handlers-for-a-request – Djave Feb 07 '17 at 12:15
  • Thanks, This is the other way around than suppressing the ajaxError. Here I would like to suppress the error so that only the ajaxError will be taken (in case of a certain status) – Tal Feb 07 '17 at 12:18
  • Or in other words, suppress the local error for the favor of the global error – Tal Feb 07 '17 at 12:24

0 Answers0