You need to sign in to do that
Don't have an account?

visualforce iframe code help
Hello!
I am in no way a developer so I'm having a hard time getting a very simple iframe to work.
I created a custom Visual Force tab in my org to display this page and I just want it to display an outside URL.
This is what I was using and it looks like it's almost there, but it just won't populate the external page and I can't figure out why.
<apex:page showHeader="true">
<apex:pageBlock >
<apex:iframe src="https://www.website.com">
</apex:iframe>
</apex:pageBlock>
</apex:page>
Does anyone see what is wrong/can let me know what to change?
Thanks!
Melissa
I am in no way a developer so I'm having a hard time getting a very simple iframe to work.
I created a custom Visual Force tab in my org to display this page and I just want it to display an outside URL.
This is what I was using and it looks like it's almost there, but it just won't populate the external page and I can't figure out why.
<apex:page showHeader="true">
<apex:pageBlock >
<apex:iframe src="https://www.website.com">
</apex:iframe>
</apex:pageBlock>
</apex:page>
Does anyone see what is wrong/can let me know what to change?
Thanks!
Melissa
1) Iframe or Web Tab content displays a blank page:
http://https://help.salesforce.com/articleView?id=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323&type=1
2) You can't use an iframe like that with an external URL since 2015.
https://developer.salesforce.com/forums/?id=906F0000000BMKaIAO
3) But the documentation is not enough clear and there is still this example with:
<apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/> that doesn't work anymore in fact directly into a simple VFP.
4) Another example is used with iFrame, where the passthrough is used to get it’s attributes.
<apex:page controller="testcontroller" docType="html-5.0" sidebar="false" showHeader="false">
https://wedgecommerce.com/use-html-attributes-visualforce/
But the last example which works doesn't use an external URL in the iframes.
On the other hand, my local Ugandan newspaper website (http://www.monitor.co.ug/) does display, after I explicitly allow Chrome to "Load unsafe scripts" via a pop up.
Could definitely use an official explanation from Salesforce.
Thanks again!