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
SunsterSunster 

IFrame P3P Issue in VF Page navigation

I am having a problem with my navigation inside of a custom page layout. Here is a little background.

 

  • I have created a new Lead Page Layout
  • I have created a new Section on that Page Layout
  • Inside the section I have included a new Custom VF Page that displays some data

 

Here is the problem:

  1. Salesforce loads the custom VF page into an IFrame.
  2. Therefore when I select a link that is displayed in the custom section that I have created, It loads the selected navigation into the section instead of into the browser window. Obviously, this is a P3P issue.

Some things that I have tried:

  1. Added a script tag to check the window location with the top location.
  2. Modified the script tag to load the location of the JavaScript top object.

Is there a solution for this, or would anyone have a better approach to this issue. I'm not sure how I can add the appropriate P3P header information to a VF page.

 

Any help here would be appreciated.

 

Best Answer chosen by Admin (Salesforce Developers) 
ScoobieScoobie

Whenever I have come across this, I've rendered all my links as <apex:outputLink target="_top" value = 'blah' />

All Answers

ScoobieScoobie

Whenever I have come across this, I've rendered all my links as <apex:outputLink target="_top" value = 'blah' />

This was selected as the best answer
SunsterSunster

Scoobie, Thanks for giving us newbs the simple answers. It works well!

 

Sunster