Categories | Question details Back To List | ||||||||
Tree Menu not working with Firefox Hello Support, Below is the attached code for xml and the html file used for Tree based navigation. The tree works perfectly in IE but gives LoadXML error pop-up for firefox. On clicking that another pop-up appears with the following messages: DataStructure XML reffers to not existing parent. Please advice.. Thanks, skm ----nav.html <script> myTree=new dhtmlXTreeObject(document.getElementById('treeBox'),"100%","100%",1); myTree.setImagePath("dhtmlxTree/codebase/imgs/csh_vista/"); myTree.enableHighlighting(true); myTree.loadXML("nav.xml"); var target = null; myTree.attachEvent("onMouseIn",function(id){ //id - id over which mouse moved var target = myTree._idpull[id].span.parentNode; var myUrl = myTree.getUserData(id,"href"); if(myUrl) target.style.cursor="default"; else target.style.cursor="text"; return true }); myTree.setOnClickHandler(doOnClick); function doOnClick(id){ var myUrl = myTree.getUserData(id,"href"); if(myUrl) { parent.right.location.href = myUrl; } } </script> .......end of code ....nav.xml <tree id="1"> <item text="Quick Glance" id="Ops" select="1" open="1" call="1"> <userdata name="href">o.asp</userdata> <item text="I/E" id="ops1"> <userdata name="href">e.asp</userdata> </item> <item text="TLOG" id="ops2"> <userdata name="href">t.html</userdata> </item> <item text="T-API" id="ops3"> <userdata name="href">t.html</userdata> </item> <item text="D" id="op4"> <userdata name="href">d.asp</userdata> </item> </item> </tree> .......end of code Answer posted by Alex (support) on Jul 28, 2009 01:41 Hello, the issue wasn't reproduced locally. Please, take a look at the attached sample. There are some reasons for incorrect xml issue - please check http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob Attachments (1)
Answer posted on Jul 28, 2009 16:43 Thanks. It worked. It was a space that was killing it.
Thanks again, skm
|