Categories | Question details Back To List | ||
Object Expected Error I am trying to implement dhtmlxtree and am getting an error that n.id is not an object. I am initializing the tree using HTML, and the tree builds fine. Here is the HTML code I am using to implement the tree <script src="../../../../_include/clientsidescript/dhtmlxTree/ext/dhtmlxtree_start.js" type="text/javascript"></script> <script src="../../../../_include/clientsidescript/dhtmlxTree/dhtmlxcommon.js" type="text/javascript"></script> <script src="../../../../_include/clientsidescript/dhtmlxTree/dhtmlxtree.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> var myTree = dhtmlXTreeFromHTML("treeboxbox_tree"); </script> <div class = "dhtmlxTree" id = "treeboxbox_tree" setImagePath = "/_include/clientsidescript/dhtmlxTree/imgs/csh_vista/" style = "width:250px; height: auto; overflow:scroll; font-family: Verdana;"> ...... tree here...... </div> Answer posted by Support on Dec 22, 2008 03:24 Such error may occur if tree container can't be located In your case, the code which init tree executed before related html container rendered on page, you can a) move init code in onload handler or just after html container of tree b) remove code at all, having class = "dhtmlxTree" is enough to init tree, you need not any additional code. |