Categories | Question details Back To List | ||
FireFox dhtmlxtree javascript error I have implemented the dhtmlxtree in vb.net. When I open the page in IE, it works fine. When I open the page in FireFox, I get a javascript error that says: "this.parentObject has no properties" Line 63 in dhtmlxtree.js. My code follows: <html> <head> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="EXPIRES" CONTENT="01 JAN 1900"> <link href="dhtmlxtree.css" type="text/css" rel="stylesheet" /> </head> <body style="height:100%; margin:0; padding:0; width:100%;"> <form name="frmTree" id="frmTree" action="" method="post" runat="server" style="height:100%;"> <div id="treeBox" style="width:300px;height:600px;border:solid 2px;"></div> <script src="dhtmlxcommon.js"></script> <script src="dhtmlxtree.js"></script> <script> tree=new dhtmlXTreeObject("treebox","100%","100%",0); tree.setOnClickHandler(redirNode); tree.setXMLAutoLoading("myxml.aspx"); tree.loadXML("myxml.aspx"); </script> </form> </body> </html> Any idea what is going on? Answer posted by Support on Dec 07, 2007 10:11 In FF you must preserve case of ID attribute and value used in tree constructor Currently you have <div id="treeBox" dhtmlXTreeObject("treebox", which is not equal in case of FF Answer posted by fcollier on Dec 10, 2007 08:43 Thank you, that worked perfectly. |