View Full Version : Influencing a Menu from a frame

Feb 14th, 2005, 10:45 AM

Im trying to call a menu tree from a frame , so the tree opens up when a link is clicked from the other frame

I can get the link working like this when it is implemented on the same page as the tree

<a href="javascript:void(tree1.collapseAll(true), tree1.selectNode(3), tree1.expandNode(0))">Toggle 'test'</a>

but would like this to be on another frame ...would i need another function to handle this as the menu is been referenced from another page

Any ideas ?


Feb 14th, 2005, 10:50 AM
try this

<a href="javascript:void(parent.framename.tree1.collapseAll(true), parent.framename.tree1.selectNode(3), parent.framename.tree1.expandNode(0))">Toggle 'test'</a>
replacing framename with the name of the frame that the menu is in

Feb 14th, 2005, 11:20 AM
Thank you ! i did try the parent code before but put it outside the brackets this works perfectly