citronic
citronic

Reputation: 10168

cross-domain javascript

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?

Upvotes: 1

Views: 234

Answers (1)

CharlesLeaf
CharlesLeaf

Reputation: 3201

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

Upvotes: 8

Related Questions