【问题标题】:Iframe is not working in Firefox and IEiframe 在 Firefox 和 IE 中不起作用
【发布时间】:2009-03-16 02:43:31
【问题描述】:

我正在使用大量 ajax 的 grails 中开发一个应用程序。其中一部分我使用了以下代码:

<iframe id="hidden-upload-frame" style="border:none;height:25px;width:100%;" onload="${remoteFunction(action: 'list', controller: 'file', update: [success: 'fileDomain', failure: 'fileDomain'])}">
</iframe>

<div id="fileDomain">

</div>

上面的代码在google chrome浏览器中完美运行并更新fileDomain div。但在IE和firefox中它会打开一个新窗口并显示内容。它没有更新fileDomain div。如何在IE和mozilla上使其工作。我需要在 gsp 页面中添加 doctype 标签吗?

【问题讨论】:

    标签: html grails gsp


    【解决方案1】:

    我更正了答案中的代码。见Remote File upload in grails

    【讨论】:

      猜你喜欢
      • 2013-05-05
      • 2014-01-14
      • 1970-01-01
      • 1970-01-01
      • 2012-11-27
      • 2013-07-23
      • 2015-08-16
      • 2016-03-26
      • 1970-01-01
      相关资源
      最近更新 更多