Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kerri on Jun 01, 2009 16:23
open dhtmlx forum
access tree from child page in iframe

Hi,
Is there a way to access my tree from a child aspx page inside an iframe when the tree is located in the parent aspx page?

The user can navigate to a different part of the tree via links in the iframe, and I'd like to update the navigation in the tree (select the new node that the user is at.)

Thanks,
Kerri
Answer posted by Support on Jun 02, 2009 02:08
If tree was defined on master page as
   masterTree = new dhtmlXTreeObject(....

then on child page, you can use next code to access it
   parent.masterTree.selectItem(id);