onAjaxError
Description
Fires if the server returns an error
onAjaxError: (request: any) => boolean;
Parameters
request- (required) object - XML HTTP request object
Returns
result- (boolean) - defines 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