Categories | Question details Back To List | ||
dhtmlXLayout / attachTree / Error type: DataStructure I don't know how to make it easyer: var Tree = LayoutSlave.cells("a").attachTree(0); Tree.setImagePath("/js/dhtmlxTree/codebase/imgs/"); Tree.loadXMLString('<?xml version="1.0" encoding="iso-8859-1" ?><tree id="0"><item text="Books" id="books" open="1" call="1" select="1"><item text="Mystery & Thrillers" id="mystery" /></item></tree>'); But that is the result: Error type: DataStructure Description: XML reffers to not existing parent I would be happy about any hint! Thank you! Answer posted by Support on Feb 23, 2009 07:39 Try this: Tree.loadXMLString('<?xml version="1.0" encoding="iso-8859-1" ?><tree id="0"><item text="Books" id="books" open="1" call="1" select="1"><item text="Mystery & Thrillers" id="mystery" /></item></tree>'); Answer posted by NewbieVolker on Feb 24, 2009 00:06 No, that's not the solution. Now I have change to Tree.loadXML("<path>/getxml.cgi") and it solved the problem. I think loadXMLString() ist not allowed in this context. Answer posted by Support on Feb 24, 2009 02:03 If above situation occurs in IE - it may be caused by used encoding. While loading data from XML string IE limited to UTF encoding only. ( limitation of browser, can't be changed ) |