Sample: dhtmlxTree Autoloading from XML dhtmlxTree main page
X

Advanced processing of JSON allows this JavaScript tree menu to handle large amounts of data. Dynamical loading of items from JSON stream gives a possibility to create DHTML trees with unlimited number of nodes. dhtmlxTree has an ability to load data asynchronously as-needed (using AJAJ) 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("json.php"); 
            tree.setDataMode("json");
            //load first level of tree
            tree.loadJSON("json.php?id=0");
</script>