onAjaxError

서버가 에러 응답을 보낼 때 트리거됩니다.

boolean onAjaxError(object request);
requestobjectXML HTTP 요청 객체
boolean이벤트의 기본 동작을 계속할지(true) 아니면 막을지(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

이 이벤트는 차단할 수 있습니다. false를 반환하면 AJAX 요청에 대한 추가 처리가 중단됩니다.

See also
Back to top