Advertisement

Controlling pane-splitter from within Iframe in center pane

Moderators: Calcifer, slothy

Controlling pane-splitter from within Iframe in center pane

Postby minamu1 » Fri Feb 23, 2007 3:15 pm

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!
minamu1
 
Posts: 9
Joined: Tue Feb 20, 2007 10:54 pm

Postby sitehand » Fri Feb 23, 2007 3:51 pm

I use the following from within an iframe in the center pane.

window.parent.paneSplitter.expandPane('west');
sitehand
 
Posts: 8
Joined: Fri Feb 23, 2007 7:32 am

Postby minamu1 » Fri Feb 23, 2007 6:36 pm

Thanks a lot! It solved it for me. I really appreciate it!
minamu1
 
Posts: 9
Joined: Tue Feb 20, 2007 10:54 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 14 guests

cron