This documentation is deprecated. Please refer our new documentation here

FAQBrowser MonitoringHow do I notify jQuery Ajax errors?

You can add following code to notify jQuery Ajax errors to Atatus.

function processJQueryAjaxError(event, jqXHR, ajaxSettings, thrownError) {

    var message = 'AJAX Error: ' +
            (jqXHR.statusText || 'unknown') +' '+
            (ajaxSettings.type || 'unknown');

    atatus.notify(thrownError || event.type, {
        status: jqXHR.status,
        statusText: jqXHR.statusText,
        type: ajaxSettings.type,
        url: ajaxSettings.url,
        ajaxErrorMessage: message,
        contentType: ajaxSettings.contentType,
        activeTarget: && ? : undefined