I have gotten a little farther but still haven't quite fixed it.
It was suggested that I use ScriptInjector because HTMLPanel inserts
using innerHTML and that doesn't update correctly in IE.
We're not on 2.4 yet but just to try I copied in the source files
needed for ScriptInjector and attempted to use that. The JS files
download correctly in both browsers, but I get the '$wnd.xxxx is
undefined exception' indicating that the references in the external
script can't be found. I don't try to load my widget until the
onSuccess call returns from the script inject - so my code looks
something like this:
ScriptInjector.fromUrl("http://example.com/foo.js").setCallback(
new Callback<Void, Exception>() {
public void onFailure(Exception reason) {
Window.alert("Script load failed.");
}
public void onSuccess(Void result) {
Window.alert("Script load success.");
MyWidget widget = new MyWidget();
client.onSuccess(widget); // adds the widget to the view
}
}).inject();
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.