Used to capture the error event when execute ajax.
If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.
Default: null
event Object
zTree unique identifier: treeId.
JSON data object of the parent node
When load root nodes, treeNode = null
XMLHttpRequest Object, please refer to JQuery API documentation.
a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.
eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.
function myOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest);
};
var setting = {
callback: {
onAsyncError: myOnAsyncError
}
};
......