onLoadError
Description
Fires if the scheduler has failed to parse data, or if the server has returned 4xx or 5xx response status
onLoadError: (response: XMLHttpRequest) => void
Parameters
response- (required) XMLHttpRequest - an Ajax request object
Example
scheduler.attachEvent("onLoadError", function(response){
dhtmlx.message("Failed to load data");
});
Details
The event is invoked by the parse and load methods.
In case the event is invoked by the parse method, the handler function will take as a parameter an object with the responseText property, which will contain data to be parsed as a value:
{
responseText: parseArgument
}
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.