2010-04-26 63 views
1

的Webkit Develoepr工具说,下面的JavaScript错误:此Web工具包JavaScript警告的含义是什么? (ThickBox的)?

Unsafe JavaScript attempt to access frame with URL file:///D:/wamp/www/projects/c1-marching-band2/instruments.html from frame with URL file:///D:/wamp/www/projects/c1-marching-band2/iframeModal.html?placeValuesBefore. Domains, protocols and ports must match. 
file:///D:/wamp/www/projects/c1-marching-band2/iframeModal.html?placeValuesBefore:15Uncaught TypeError: Property 'tb_remove' of object [object DOMWindow] is not a function 

我试图关闭ThickBox的DIV(iframe中)按下一个提交按钮。但我认为'tb_remove'有问题。 (只是在Chrome)

它母鹿的工作在他们的官方页面:http://jquery.com/demo/thickbox/

回答

1

您必须在服务器上运行。起点必须匹配。

如果您尝试在本地主机上运行此操作,或将其上传到Web服务器,我的猜测是它将开始工作。

Domains, protocols and ports must match.

file:///D:/wamp/www/projects...

建议您直接从驱动器运行文件,而不是通过apache或类似的。

+0

是的,我只是想过!它工作感谢! – alexchenco 2010-04-26 15:13:15