Attempting to load client script asynchronously results in error
Hello,
-- I'm a new user of GWT. I'm attempting to load a client script asynchronously using the standard append-to-head technique:
var scriptElement = document.createElement("script");
scriptElement.id = "myScript";
scriptElement.src = "myscript/myscript.nocache.js";
document.getElementsByTagName("head")[0].appendChild(scriptElement);
... however the client JavaScript fails to load with the following error (from the Firefox web console):
[00:29:54.692] A call to document.write() from an asynchronously-loaded external script was ignored. @ http://127.0.0.1:8888/myscript/myscript.nocache.js:16
... and the browser stops executing the client JavaScript.
This is GWT 2.5.1 and Firefox 25.0. Is there a way to disable the generated JavaScript from using document.write()?
Thanks in advance,
Geoff.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home