简体   繁体   English

Internet Explorer刷新iframe

[英]Internet Explorer refreshing iframe

I am having a very weird issue with IE (test on IE11) I have a wordpress page that contains a hard coded iframe block that links to a php page which runs a couple of scripts. 我在IE上有一个很奇怪的问题(在IE11上测试),我有一个wordpress页面,其中包含一个硬编码的iframe块,该块链接到运行几个脚本的php页面。 I used this same code a year ago and it worked fine. 一年前,我使用了相同的代码,并且运行良好。 Now when I put the iframe into page, Chrome, Firefox, Safari, Opera all displaying it properly. 现在,当我将iframe放入页面时,Chrome,Firefox,Safari,Opera都能正确显示。 However, when I open the page in IE the iframe is refreshing constantly. 但是,当我在IE中打开页面时,iframe会不断刷新。

Below is my code for iFrame within WordPress page http://www.austinweddings.com/bridalextravaganza/dream-wedding-giveaway/ 以下是我在WordPress页面http://www.austinweddings.com/bridalextravaganza/dream-wedding-giveaway/中的 iFrame代码

<div style="float: none; clear: both; height: 400px;">
     <h2 class="post-title entry-title"><a href="#">Vote for your favorite couple now!</a></h2>
Share this page with your friends on facebook!
    <div class="fb-like" data-share="true" data-show-faces="true" data-action="like" data-layout="standard" data-href="http://www.austinweddings.com/bridalextravaganza/dream-wedding-giveaway/"></div>
    <iframe style="border:0;" src="http://www.texasweddingsltd.com/video-voting/index.php" height="400" width="980"></iframe>
</div>

If I visit the http://www.texasweddingsltd.com/video-voting/index.php in IE it displays fine, but in iFrame it goes into infinite refresh loop. 如果我在IE中访问http://www.texasweddingsltd.com/video-voting/index.php ,它会很好显示,但是在iFrame中,它会进入无限刷新循环。

EDIT: I've tested the iFrame on another HTML page in related to WordPress, and it displays it correctly with out refreshing. 编辑:我已经在与WordPress相关的另一个HTML页面上测试了iFrame,并且它没有刷新就可以正确显示它。 I narrowing the problem down to the wordpress page itself. 我将问题缩小到wordpress页面本身。

EDIT: Tested the iframe in another WordPress page the issue is still present, I am convinced that the issue is somehow caused by the JS calls that exist on both pages. 编辑:在另一个WordPress页面中测试了iframe,该问题仍然存在,我确信该问题是由两个页面上都存在的JS调用引起的。

Any help would be very appreciated! 任何帮助将不胜感激!

I get the same result in IE11 but my main suggestion is to look into the errors from the console: 我在IE11中得到了相同的结果,但我的主要建议是从控制台查看错误:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM