Hi, Tom, Thanks for ur reply!
Having done var bar = new $wnd Foo(); Is this correct: bar.fooMethod(); ? On Dec 13, 10:19 pm, Thomas Broyer <[email protected]> wrote: > On 11 déc, 07:31, JavaDoc <[email protected]> wrote: > > > > > Hello, > > > Ive associated a certain FooBar.js to my module. > > The javascript has a methodFoo(), which I need to invoke. > > > I am trying to do this through JSNI, however, its failing. Heres my > > code: > > > public native void doSomething() /*-{ > > var bar =newFoo(); > > //some other stuff > > > }-*/; > > > This method is being called through an onClick event of a GWT button. > > > I am however, getting this exception in my console: > > > [ERROR] Uncaught exception escaped > > com.google.gwt.core.client.JavaScriptException: (TypeError): 'Foo' is > > undefined > > number: -2146823279 > > > Please help me out!!!! :( > > var bar =new$wnd.Foo(); > > Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasics.htm... -- 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.
