on the same page, I will have to create more than one dhtmlxtrees. how do I access them later by the div id? i will have to come with some java script function that works for all the trees, so, just by passing div id, i need to be able to find the that div’s tree object? any idea?
There is not API to get tree object by id of its html container. However, you may put tree object with div id as a key into an object:
var trees = {};
trees[“treebox1”] = new dhtmlXTreeObject(“treebox1”,“100%”,“100%”,0);
…
trees[“treeboxN”] = new dhtmlXTreeObject(“treeboxN”,“100%”,“100%”,0);
Thanks. that helps.