apex:iframe Tag

265 views
Skip to first unread message

kranthi

unread,
Jul 7, 2014, 11:52:18 AM7/7/14
to salesforce-p...@googlegroups.com
Hi Friends,

In one of the visualforce page we used apex:iframe tag. Now the vf page is showing blank page. I found some articles in google about this iframe issue, what they suggested is set X-frameoptions to sameorigin. But I am not sure how to do this?
If any of you guys faced the problme guide me with your suggestions. Thanks in advance.

Gautam Maheshwari

unread,
Jul 7, 2014, 11:59:20 AM7/7/14
to salesforce-p...@googlegroups.com
Hi  ,

please  disable "clickjack protection for non-setup Salesforce pages". This got enabled automatically in last sfdc release.

Thanks and Regards,
Gautam Maheshwari,
+91-9886130795


--
You received this message because you are subscribed to the Google Groups "salesforce professionals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salesforce-profess...@googlegroups.com.
To post to this group, send email to salesforce-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/salesforce-professionals.
For more options, visit https://groups.google.com/d/optout.

Anusha Pokuri

unread,
Jul 7, 2014, 12:05:57 PM7/7/14
to salesforce-p...@googlegroups.com
Hi Gautam,

But my manager don't want to disable this setting. He wants some alternative solution for this.

Thanks,
kranthi


--

Gautam Maheshwari

unread,
Jul 7, 2014, 12:27:39 PM7/7/14
to salesforce-p...@googlegroups.com
in  that case you may  need  to use some other  vf page tag instead of apex:iframe.

Thanks and Regards,
Gautam Maheshwari,
+91-9886130795


Anusha Pokuri

unread,
Jul 7, 2014, 12:33:02 PM7/7/14
to salesforce-p...@googlegroups.com

I am new to development. can you please suggest another vf tag for me.

Thanks,
Kranthi.

Peter Gruhl

unread,
Jul 7, 2014, 5:39:56 PM7/7/14
to salesforce-p...@googlegroups.com

Hi Kranthi,

 There is possibly a simpler solution you may want to try first.  How are you displaying the web content in the <apex:iframe> tag?

 Be sure you are asking for a secure website, not straight http.  For example, if I specify the frame content as ‘http://www.google.com’, it will *NOT* display, and leave a blank section.  If I specify the frame content as ‘httpS://www.google.com’, it will display just fine, as that is now using SSL.  This should work regardless of your clickjacking setting.

 Regards,

 - Peter

Anusha Pokuri

unread,
Jul 8, 2014, 9:45:40 AM7/8/14
to salesforce-p...@googlegroups.com
Hi peter,
Below is the part of my visualforce page code.

 <apex:tab label="List" name="List" id="BranchList" labelWidth="175">
      <p><h2>  Your <apex:outputLabel value="territory's" rendered="{!(IsUserTBMOrRBD == 'TBM')}"/><apex:outputLabel value="region's" rendered="{!(IsUserTBMOrRBD == 'RBD')}"/> national accounts top branches.  You will be responsible for routine Gammagard in-services to each of these branches in 2013.</h2></p>
      <apex:iframe height="475" width="1400" scrolling="true" src="https://na13.salesforce.com/00Oa0000007ZsrM"/>
    </apex:tab>

Guide me if you have any other alternative for this.
The link in the src is a custom report link.



--
You received this message because you are subscribed to the Google Groups "salesforce professionals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salesforce-profess...@googlegroups.com.
To post to this group, send email to salesforce-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/salesforce-professionals.
For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,
kranthi.
Reply all
Reply to author
Forward
0 new messages