IE7 iframe blank page

折月煮酒 提交于 2019-11-30 09:51:58
Kushal

If you are using ASP then add this code

Response.AddHeader "p3p", "CP=" & chr(34) & "CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" & chr(34)

in all the pages which are loaded in the iframe

IE7 does not accept 3rd party cookies (when page loaded in iframe).

It can do, it depends on the options that are set. Especially if the privacy level has been turned up, the third party must provide a P3P policy file to ensure IE that it's not going to be naughty. (As a privacy measure this is a bit of a dead loss IMO, but we're stuck with it.)

I am loading a page (of a 3rd party company) which asks for credit card information.

Whoah! Don't do that. The user won't be able to see from the address bar that it's the correct site URL and it's properly encrypted with SSL. You're effectively asking your customers to trust an unknown site and connection.

Lose the iframe. Most payment processors will have options to style your payment pages to match your site, and return the user to your site when they're done.

RuudKok

Have you set the IFRAME attribute WIDTH? I've read about this before and in those occasions had to do with the 'WIDTH' attribute.

So instead of using the WIDTH attribute of the IFRAME, you could use the STYLE attribute instead:

<IFRAME SRC='yourpage.html' STYLE='width:100%;'></IFRAME>

[UPDATE]
In my above example I've used a %-age to declare the width of the IFRAME. You could try to declare it in pixels instead of percentage, e.g.:

<IFRAME SRC='yourpage.html' STYLE='width:600px;'></IFRAME>

Then again, this could not be the problem in your case, but please do provide more information.

Finally I found the solution for this!

It can be solved by adding the p3p header to the webpage. This tells the browser that the cookie created by the pages in the iframe are OK for user's privacy. The header has to be added to all the pages loaded in the iframe.

Below are some of the links which shows how this can be achieved in different scripting languages (PHP, ASP.net , JSP etc).

http://adamyoung.net/IE-Blocking-iFrame-Cookies

http://adamyoung.net/IE-Blocking-iFrame-Cookies

http://admon.org/node/99

Note: I dint use this solution for security and compliance reasons. Thanks Bobince

Paul Whelan

Perhaps you are using a title tag like <TITLE/>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!