Hi, all!
I develop some application on GWT, and want extend it functionality by
writing other GWT application (somethig like plugin).
I try embed "plugin" in parent application like that
public native void registerPlugin(String url) /*-{
var elem = $doc.getElementById('plugin');
var e = $doc.createElement("script");
e.src = url;
e.type="text/javascript";
elem.appendChild(e);
}-*/;
My plugin must show simple alert :
public void onModuleLoad()
{
Window.alert("I AM PLUGIN!");
}
But then i try add plugin script in DOM, my browser is crash.
Can somebody help me with it and explain what i do wrong?
Thanks
--
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.