Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =’_parent’).
Any ideas?
(Everything I’ve tried- via redirect_to - just keeps it inside the
iframe)
On May 7, 7:43 pm, nextpulse [email protected] wrote:
Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =‘_parent’).
Any ideas?
(Everything I’ve tried- via redirect_to - just keeps it inside the
iframe)
i don’t think you can do this server side - you need to set the right
target attribute etc on the link and so on.
Fred
nextpulse wrote:
Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =‘_parent’).
Any ideas?
(Everything I’ve tried- via redirect_to - just keeps it inside the
iframe)
use responds_to_parent plugin
tom
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
I used a quick workaround. Replace the redirect_to with:
render :text => “window.parent.document.location.href = ‘/myloc’;</
script>”
I think this works better:
Kiyoshi
thanks.
Seems like I may have to render some JS in the controller to call the
parent.
On May 7, 11:46 am, Frederick C. [email protected]