Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 26, 2008 08:03
open dhtmlx forum
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
Answer posted on Feb 26, 2008 08:53
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(...