Hi ,

I am trying to inject 3rd Party javascript libraries into my gwt project.

If I import the scripts directly via my html with <script src="..path to 
src" type="text/javascript"/> it works perfectly.

However, when I load them at runtime with ScriptInjector, the scripts are 
loaded but a call to #ClassName results in an exception


com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.ClassName 
is undefined

I am calling ClassName in the OnSuccess method of the callback for 
ScriptInjector. 

- From a dom perspective, injecting it directly into the html, results in 
the scripts getting included in the html head, however, SCriptInjector, 
injects it into an <head> section of an iframe which is embedded into the 
body of the html.

What exactly is the difference and how to work around this?

Regards,

-- 
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+unsubscr...@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.


Reply via email to