You need to sign in to do that
Don't have an account?
mike1.3910160257587908E12
Blank white page appears when trying to embed Iframe in Visualforce..
I can't quite find an error with my code. Someone suggested Salesforce doesn't allow Iframes anymore? Can anyone make any suggestinos or reccomendations to this code? I am just trying to get a VF page to display an Iframe of webcontent on the Account page layout. (Notice I have used a merge field to find the SRC of the website.)
<apex:page standardController="Account" sidebar="true" >
<apex:iframe frameborder="true" width="1000px" height="800px"
src="{!Account.urlfield__c}" scrolling="true"
id="EmployeeRefer"/>
</apex:page>
<apex:page standardController="Account" sidebar="true" >
<apex:iframe frameborder="true" width="1000px" height="800px"
src="{!Account.urlfield__c}" scrolling="true"
id="EmployeeRefer"/>
</apex:page>
What is the URL that you are trying to iframe in? Some servers will set the X-Frame-Options header:
https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options?redirectlocale=en-US&redirectslug=The_X-FRAME-OPTIONS_response_header
which stops the content being displayed in a frame.
I've just tried with the Salesforce app home page and it worked okay - try:
<apex:iframe src="/home/home.jsp"/>
and see what happens there.
and it just displays a blank page.
As I said earlier, Google sets the X-Frame-Options header to explicitly stop you embedding the site in a frame. There is nothing you can do about this - if the server sets that header your browser will not display the content.
<apex:page sidebar="false">
<apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/>
</apex:page>
I am using Chrome 35 and I had to "load unsafe script" in order for it to render in the frame.
thanks bob, you helped me solve a similar issue for myself. Great!
Thanks!
After adding the extension, browser needs to be restarted. Have you done this ?
its working for google or salesforce.com url but my main url not working is there any issue.
whenver i given this url http://bizapp1qa.intra.aricent.com/ibssso/pbv3frqa/ui/#/home to new tab ts working. but, only inside salesforce page is not working.