Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by abhishek on Aug 28, 2009 05:18
open dhtmlx forum
DHTMLX Tree: problem loading tree from xml file

problem loading tree from xml file.........if the required file doesnot exist, it is throwing error

how to check, whether the resource (xml file) file exist or not, before passing it to the function?
Answer posted by Alex (support) on Aug 28, 2009 05:40

You can set custom error handlers. 

For example:

function my_error_handler(type, name, data){
  /*your code here*/
}
dhtmlxError.catchError("LoadXML",my_error_handler);
dhtmlxError.catchError("DataStructure",my_error_handler);