+ Start a Discussion
Tony TannousTony Tannous 

Mini page Layout is showing inside an iframe in the Home Page ?? Summer 2014

Dears,

In summer 14, we have a new feature to add a VF page to the Home page, and this is nice feature.

But in case in the VF page you are adding contains  a grid  and some of these fields are relations to other object.

once the cursor pass on this field you will be able to see the popup(mini page layout) but inside an iframe ,and this will cause that data will not appear correctly.

Thank you in advance,
 
bob_buzzardbob_buzzard
The system is behaving correctly - the "popup" layer when you hover over a record id will be constrained to display inside the iframe.  If there isn't enough room to display all the information, it will cut off at the boundaries of the iframe.  The browser enforces this as otherwise you could put some nefarious JavaScript into a component, display it over the main page and make the user think that it was coming from the main site (Salesforce in this instance).
Tony TannousTony Tannous


I was expecting that the Javascript Trick will be implemented in the platform functionality, to verify if it is opened from a main page to open it in the parent frame, so it will be more easier for the developer, because one VF could be opened alone from a link or from the main page and this will cause to have more testing in the JavaScript action. What do you think? Thank you Bob for your answer
bob_buzzardbob_buzzard
You won't be able to open it in the parent frame - its not Visualforce that is stopping this, rather the browser's same origin policy stops frames from different servers interacting with each other.