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
Mayank.msMayank.ms 

How to embed iframe in visual force page

I want to display external website on one of the salefoce object detail page via visual force page. But iframe is not working after release 15, so how can use it. Pleae let me know
NagendraNagendra (Salesforce Developers) 
Hi Kamran,

Please use https instead of HTTP in your code.

Find the sample code below.
<apex:page showHeader="false">
    <apex:pageBlock >
        <apex:iframe src="https://www.salesforce.com" scrolling="true" id="theIframe"/> 
    </apex:pageBlock>
</apex:page>
Hope this helps.

Mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering similar issue.

Regards,
Nagendra.

 
Mayank.msMayank.ms

Hi Nagendra,

I have already tried with this. Actually Apex:iFrame in visualforce page stopped working since Summer 15 release. So I want the alternet of it or any change in SF

NagendraNagendra (Salesforce Developers) 
Hi Kamran,

May I suggest you please check with below link from stack exchange community with suggested workaround for the above problem.

http://salesforce.stackexchange.com/questions/121164/salesforce-summer-16-page-not-loading-in-iframe/121494

https://developer.salesforce.com/forums/?id=906F0000000BMKaIAO

Hope this helps and this is the possible workaround for the above issue.

Mark this as solved if the information helps.

Regards,
Nagendra.
Mayank.msMayank.ms
Thanks Nagendra, I have already reviewed it.