Getting access to the tree define in the parent frame

Hi



This is a general javascript question. We have the dhtmlXTree tree created in the parent frame. We are using an IFRAME and we need to get access to the tree object defined in the parent frame or the other frames



Thanks

raj

You can reffer by object name

If tree was defined as
    tree = new dhtmlXTreeObject(…

You can use next code to access it from child frame
    parent.tree
    parent.tree.loadXML(…

or if tree in topmost iframe
    top.tree.loadXML(…