> And If I want handle to catch AjaxError in ajaxComplete?
>
> Exist a way?

You can still use ajaxError to trap errors.  Also, the XHR object is
passed to ajaxComplete callback as the 2nd arg so you can test for
success like this:

$().ajaxComplete(function(event, xhr, settings) {
    var success = $.httpSuccess(xhr);
    if (!success) {
        // do something
    }
});

Reply via email to