function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vasvas 

redirecting issue with embedded vf page

I have a Visualforce page embedded in a regular page layout. The embedded VF page has a search field and a button. On clicking the button, it opens another VF page with the search results. The search works ok, but the resulting VF page (second one) is being displayed in the same place as the first one, embedded in the layout. I would like to open the second page like a standard page (with sidebar, tabs etc) in the main frame. It sounds like a very simple thing, but I just can't figure it out. Can someone pls help?

 

Thanks

 

bob_buzzardbob_buzzard
I don't think you'll be able to do this.  As the VF page comes from a different server to the standard page, your VF page will not be allowed to take control of the parent window - the browser will consider this cross site scripting.
pedrosampaiopedrosampaio

Have you figured this out?

 

Thanks.

SteveBowerSteveBower

What Bob said.  No such luck.  -S