Hi,
I’m using dhtmlxSuite_v51 for my project and I want load a tree from XML.
Using JS, I initialized the tree it seems fine but on my JSP page the tree is not loading.
Please see the code below,
javascript
var tourTree;
function loadTourTree(){
tourTree = new dhtmlXTreeObject('tourListTree','100%','100%',0);
tourTree.setImagePath(applicationPath+"/common/tools/dhtmlxSuite_v51/codebase/imgs/dhxtree_material");
tourTree.enableSmartXMLParsing(true);
tourTree.enableCheckBoxes(true);
tourTree.enableSmartXMLParsing(true);
tourTree.enableTreeLines(true);
tourTree.enableDragAndDrop(true);
tourTree.parse(tourXml,"xml");
}
var tourXml = '<s:property value="tourXml" />'; //loads from java struts model
JSP
[code]
Error in browser consile
Please help…