【问题标题】:Typo3 iFrame Javascript not working inside Internet ExplorerTypo3 iFrame Javascript 在 Internet Explorer 中不起作用
【发布时间】:2013-08-15 14:08:19
【问题描述】:

Typo3 域名(4.3.3 版)网址:www.YYYY.com

iFrame 指向这个域:www.XXXX.com

iFrame 页面内容:基于 jQuery 的 Javascript 联系人表单

在 TYPO3 中,我使用以下代码添加了一个 HTML 内容项:

<iframe src="http://www.XXXX.com/share/?v=35" name="XXXX-com-35" scrolling="no" frameborder="0" height="350" width="410"></iframe>

在 Firefox、Chrome 和 Safari 网络浏览器中一切正常。

仅在 MS Internet Explorer(版本:7、8、9、10)中,我看到 iFrame 内容,但所有按钮都是超链接,例如“javascript:void(0);”不工作。

当我在 IE 中启动 Devtools (F12) 时,我看到,对于所有 iFrame 内容脚本,我都会收到“拒绝访问”。

我希望你对此有一个答案。谢谢

【问题讨论】:

  • 如果这是您的解决方案,请将其添加为答案,而不是问题编辑。
  • @Michael 我做了更改并添加了解决方案作为答案

标签: javascript internet-explorer iframe typo3


【解决方案1】:

解决方案:我使用的是旧的 jQuery 库(1.10.1)

有了 jQuery 库 (1.10.2),它现在可以工作了。看起来这是一个 jQuery 错误。

我现在正在使用:

<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

它在 IE 7、8、9 和 10 上的表现非常出色

【讨论】:

    猜你喜欢
    • 2017-01-10
    • 2011-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多