IE8 reloads dynamic iframe content from cache into the wrong iframe

I have a page with multiple iframes on it. Each iframe is invoking some javascript which dynamically writes new iframes into the parent window's document. This works fine on first page load. But if the page is refreshed in IE8 (and earlier) one of the dynamically generated iframes will get loaded from cache into one of the hard-coded slots on the parent page. See the following example: http://www.risingspiral.com/ie8-iframe-refresh/ On refresh in IE8 (may take a couple tries) the Spot 2_ will get loaded from cache into spot3.html's iframe. spot3.html will not get called at all. I've already protected against the IE dynamic iframe refresh issue described here: http://buildingonmud.blogspot.com/2010/06/ie-iframe-refresh-and-back-button.html But there still seems to be a problem. It's also interesting that the problem always seems to occur (at least for me) between the iframes spot2.html and spot3.html. I've tried a ton of different configurations to try and get around this issue. So, I'm hunting for new suggestions. Any ideas?
I just ran into this now as well. Need a fix! Or have you came up with a solution?

以上就是IE8 reloads dynamic iframe content from cache into the wrong iframe的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏