Sample: dhtmlxTree Autoloading from XML dhtmlxTree main page
X

Advanced processing of XML allows this JavaScript tree menu to handle large amounts of data. Dynamical loading of items from XML stream gives a possibility to create DHTML trees with unlimited number of nodes. dhtmlxTree has an ability to load data asynchronously as-needed (using AJAX) that increases overall performance of the tree.


 
<div id="treeboxbox_tree" style="width:200;height:200"></div>
<script>
 
    tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
            tree.setImagePath("../imgs/");
            //link tree to asp script
            tree.setXMLAutoLoading("xml.php"); 
            
            //load first level of tree
            tree.loadXML("xml.php?id=0");
</script>