Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lexa on Dec 17, 2008 05:00
open dhtmlx forum
setOnLoadingStart AND setOnLoadingEnd - is not a function!

Why I have error: "setOnLoadingStart AND setOnLoadingEnd - is not a function"


MY CODE:    
tree = new dhtmlXTreeObject('treeBox',"100%","100%",0);
tree.setImagePath("/js/dhtmlxTree/imgs/");
tree.setXMLAutoLoading("URL/get_node");
tree.attachEvent("onDblClick", onDblClick);

tree.setOnLoadingStart(OnLoadingStart);
tree.setOnLoadingEnd(OnLoadingEnd);

tree.loadXML('URL/get_node?id=0');
Answer posted by Support on Dec 17, 2008 05:45
the event setting methods are deprecated in latest codebase, just use 

tree.attachEvent("onXLS",OnLoadingStart); 
tree.attachEvent("onXLE",OnLoadingEnd);