开发者

cross-domain javascript

开发者 https://www.devze.com 2023-01-01 08:05 出处:网络
I am producing a javascript-based widget.Nothing complex just a few document.writes... When I place it inline in开发者_运维技巧 the page it renders fine in all browsers.When I place it externally and

I am producing a javascript-based widget. Nothing complex just a few document.writes...

When I place it inline in开发者_运维技巧 the page it renders fine in all browsers. When I place it externally and load it via <script src="http://example.com/path/to/site"/> it fails to render in Firefox and IE but not Chrome.

Anyone know why and a possible workaround?


Maybe you should close it with </script> instead of XML-style.

0

精彩评论

暂无评论...
验证码 换一张
取 消