Page 1 of 1

Controlling pane-splitter from within Iframe in center pane

PostPosted: Fri Feb 23, 2007 3:15 pm
by minamu1
Hello,

I have an Iframe in the center pane that sources some .jsp file. I have been having trouble trying to control pane-splitter from the file inside the iframe.

For example, "center" pane in pane-splitter contains <iframe src="test.jsp"... I want to have links in "test.jsp" that can open new/close new panes and load stuff into them. I guess my question is how can I control the pane-splitter window from a file sourced inside an iframe? Do I access the pane-splitter elements using the "window.element" ?

I would really appreciate help with this. I am sure this is a simple question but I cannot seem to figure it out (I'm still new to Javascript). Thanks a million in advance!

PostPosted: Fri Feb 23, 2007 3:51 pm
by sitehand
I use the following from within an iframe in the center pane.

window.parent.paneSplitter.expandPane('west');

PostPosted: Fri Feb 23, 2007 6:36 pm
by minamu1
Thanks a lot! It solved it for me. I really appreciate it!