从jQuery iframe重新绑定listview

时间:2009-05-21 20:28:31

标签: jquery firefox caching thickbox

我有一个listview,其中包含使用jQuery和thickbox打开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刷新。如何让我的listview从子iframe重新绑定?

3 个答案:

答案 0 :(得分:0)

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

您可能能够获得最新的成果并获得更多成功。

答案 1 :(得分:0)

作为另一种选择,

top.location.reload(true)

工作?

答案 2 :(得分:0)

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