onAjaxError

fires if the server returns an error

boolean onAjaxError(object request);
requestobjectXML HTTP request object
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onAjaxError", function(request){
    gantt.message({type: "error", text:`Http error ${request.status}!`})
    gantt.message(request.response)
    return true;
});

Related samples

Details

The event is blockable. Returning false will stop further processing of the AJAX request

See also
Back to top