【发布时间】:2010-04-13 10:09:03
【问题描述】:
我有 jQuery thickbox(TB_iframe=true),它在基于 iframe 的叠加层中显示 https 页面。
父页面是http,覆盖页面是https。如果我使用
self.parent.tb_remove()
这不起作用并给了我
<https://www.abc.com> 从<http://www.abc.com> 获取财产Window.tb_remove 的权限被拒绝。
任何解决方案。我希望能够关闭 thikbox,无论它是在 iframe 中显示的 https 还是 http 页面。
【问题讨论】:
-
您在 iframe 中显示的页面是否与您打开厚盒 lightframe 的页面位于同一域中?
-
是的,它是同一个域。但是由于 http 和 https 在不同的端口上运行,它将它作为不同的域。
标签: javascript jquery thickbox