Перейти к основному содержимому

onAjaxError

Description

Срабатывает, если сервер возвращает ошибку

onAjaxError: (request: any) => boolean;

Parameters

  • request - (required) object - объект XML HTTP-запроса

Returns

  • result - (boolean) - определяет, будет ли выполнено действие по умолчанию события (true) или отменено (false)

Example

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

Details

Событие можно блокировать. Возврат значения false остановит дальнейшую обработку AJAX-запроса

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.