Categories | Question details Back To List | ||
Problems with checking nodes when using Smart XML Parsing I am using the professional version of DHTMLX to generate a large XML tree, after loading it, it is to be sorted and have some node checked depending on setting in a file. The problem is that sometimes it tries to sort and check nodes when the tree hasnt finished loading itself. When this is tried locally, it is fine, but once it is online everything breaks apart. What should i do ? Answer posted by Support on Jan 10, 2008 08:59 The loading of tree is async process, so you need to wait the moment when loading ends, you can use onXLE event in tree to catch such moment tree.attachEvent("onXLE",function(){ //code here will be executed only after data fully loaded }); tree.loadXML(url) |