DHTMLX Touch has 2 predefined error handlers for Ajax calls:
Handlers are defined as the third parameter of the load() method. Depending on your needs, you can use both handlers or just one of them.
$$('component_id').load('some_path/data.xml',"xml", { error:function(text, xml, XmlHttpRequest){ alert("error"); } });
or
$$('component_id').load('some_path/data.xml',"xml", { error:function(text, xml, XmlHttpRequest){ alert("error"); }, success:function(text, xml, XmlHttpRequest){ alert("success"); } });
Parameters of the load() method:
Parameters of the error() and success() functions: