Thanks a lot Now, it works, the problem was that I didn't use the prefix $wnd!!!
"mea culpa" On Jul 9, 7:17 pm, Ian Bambury <[email protected]> wrote: > GWT runs in an Iframe and therefore your script is in the parent. > You can use parent.window and parent.document but GWT sets up $doc and $wnd > which will work even if the GWT structure changes. > > Ian > > http://examples.roughian.com > > 2009/7/9 Peterman <[email protected]> > > > > > Hi to all > > > I'm trying to call a javascript methods from my gwt application to a > > js file included in my project, but I always have the same error: "the > > method xxxxx can't be founded" (or something similar). > > > I have tried to put the js file in my public directory and linked it > > from my html file (hosted file) and from gwt.xml file, but it doesn't > > work. > > > I am trying with a jsni call, and instead of a jsni call I put the > > follow code: > > > alert('hello world'); > > > it works. It seems that the problem is because I don't link the js > > file correctly. > > > somebody could help me? > > > thanks a lot --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
