【问题标题】:Rebind a listview from a jQuery iframe从 jQuery iframe 重新绑定列表视图
【发布时间】:2010-10-28 01:19:35
【问题描述】:

我有一个列表视图,其中包含使用 jQuery 和厚框打开 iframe 的链接。这个新窗口允许用户使用 iframe 编辑字段信息。更新按钮 -

<input type="submit" name="bUpdateDate" value="Update" 
onclick="self.parent.location.reload(true);self.parent.tb_remove();"
id="bUpdateDate" />

此刷新在 IE 中运行良好,但 Firefox 和 Chrome 都不会重新绑定列表视图。我已经尝试过没有缓存的元标记,以及 HttpCacheability.NoCache 和 IIS 标头内容过期,但似乎没有什么能够强制刷新 Firefox。如何让我的列表视图从子 iframe 重新绑定?

【问题讨论】:

    标签: jquery firefox caching thickbox


    【解决方案1】:

    jQuery 1.3.3 发布后将更好地支持 iFrame 绑定http://brandonaaron.net/blog/2009/05/14/jquery-edge-better-support-for-other-windows-and-documents

    您也许能够获得最新的信息并取得更大的成功。

    【讨论】:

      【解决方案2】:

      作为另一种选择,可以

      top.location.reload(true)
      

      工作?

      【讨论】:

      • 与上述结果相同。
      【解决方案3】:

      在这里找到适合我的解决方案:http://www.zdima.net/blog/archives/398

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-04-02
        • 2011-08-28
        • 2010-11-10
        • 2016-10-27
        • 2017-02-21
        • 1970-01-01
        • 2013-08-12
        • 1970-01-01
        相关资源
        最近更新 更多