On 21 avr, 10:02, Chuck <[email protected]> wrote:
> Hi there!
>
> Can anyone help me with the error mentioned above?
>
> I try to make an interface to JavaScript so I can call a function. My
> Java code looks like that:
>
> public void onModuleLoad() {
>
> setShowTrigger(this);
>
> }
>
> public native void setShowTrigger(Index x)/*-{
>
> $wnd.showIndex = function () {
>
> website.client.Index::runApp()();
Shouldn't that read:
[email protected]::runApp()();
>
> };
>
> }-*/;
>
> public void runApp() {
>
> Window.alert("I am a GWT function");
> }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---