Newbie myself, but here goes:
You can create a native method in your entry point class, and call it
from onModuleLoad:
public void onModuleLoad() {
...
doSomethingInJS();
...
}
private native void doSomethingInJS() /*-{
$wnd.doSomething();
}-*/;
Hope this helps
On Jun 25, 7:56 am, Kevin Nilson <[email protected]> wrote:
> How can I call a javascript function in my index.html page from
> EntryPoint.onModuleLoad(). Currently I am doing:
> RootPanel.get().add(new HTML("<script>doSomething( )</script>"));
>
> Is there a better approach?
>
> Kevin NIlson
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---