IFrame不在Safari中工作 [英] IFrame not working in Safari

查看:91
本文介绍了IFrame不在Safari中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页中有一个 iframe 。它在FF和Chrome中运行正常,但在Safari中却没有(我使用的是Safari 6.0)

这是我的代码:

 < html> 
< head>
< title> Pengower< / title>
< / head>
< body>
< div id =container>
< iframe name =newsid =news
src =http://www.penapplications.net/ImogenApps/?Pengower:CRM:Pengower_News>
< / iframe>
< / div><! - end container div - >
< / body>
< / html>

有趣的是,如果我访问 src url,然后访问 iframe 页面,然后 iframe 正确显示内容,但是如果我只是访问 iframe 页面之前未访问 src 网址页面,它不显示内容。



有什么想法?

解决方案

iframe 似乎正在重定向到调解页面( penDummyLogon.aspx) 会尝试自动将表单提交至最终页( main.aspx 并设置一个cookie。



由于这种设置cookie的方法似乎在最近的Safari版本中被阻止,用户在没有cookie的情况下到达最后一页。 main.aspx 似乎无法处理缺失的cookie,因此其预期内容无法加载。

有关此主题的更多信息,请参阅在Safari中设置第三方Cookie的技术是否仍然有效? Safari第三方Cookie iframe技巧不再有效?


I have an iframe in my web page. It works fine in FF and Chrome but not in Safari (I'm using Safari 6.0)

This is my code:

<html>  
    <head>  
        <title>Pengower</title>     
    </head>  
    <body>  
        <div id="container">  
            <iframe name="news" id="news"   
                src="http://www.penapplications.net/ImogenApps/?Pengower:CRM:Pengower_News">  
            </iframe>  
       </div><!--end container div-->  
    </body>  
</html>

Funny thing is that, if I access the src url and then access the iframe page, then the iframe shows the content properly, but if I just access the iframe page without accessing the src url page before, it does not show the content.

Any ideas?

解决方案

The iframe seems to be redirecting to a mediating page (penDummyLogon.aspx) which attempts to automatically submit a form to the final page (main.aspx) and set a cookie.

Since this method of setting a cookie seems to have been blocked in the recent Safari versions, the user arrives at the final page without the cookie. main.aspx doesn't seem to be able to handle the missing cookie, and as a result its expected content doesn't load.

For more about this subject see Does the technique for setting third-party cookies in iframes in Safari still work? and Safari 3rd party cookie iframe trick no longer working?

这篇关于IFrame不在Safari中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆