fires if the server returns an error
request | object | XML HTTP request object |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
gantt.attachEvent("onAjaxError", function(request){
gantt.message({type: "error", text:`Http error ${request.status}!`})
gantt.message(request.response)
return true;
});
The event is blockable. Returning false will stop further processing of the AJAX request