• #24181
    Salesforce | Satyakam Satyakam #444
    Forcetalks

    How to embed iframe in Salesforce Visualforce page?

    How to embed iframe in Visualforce page. I want to display the external website on one of the Salesforce object detail pages via visualforce page. But iframe is not working after release 15, so how can use it. Any help, please.

     

    #24186
    Salesforce | Charan Tej Charan Tej #247
    Forcetalks

    I am able to diplay external website through Visualforce page.

    I think issue is only with few websites where X-frame options are set to Deny.

    sample

    #24208
    Salesforce | Satyakam Satyakam #444
    Forcetalks

    Hi Charan,

    Is there any other option to show all websites within our visualforce page.

    Thanks

    #41250
    Forcetalks

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?