onAjaxError

fires if the server returns an error

boolean onAjaxError(object request){ ... };

Parameters

requestobjectXML HTTP request object

Returns

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;
});

Details

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

See also
Back to top