Tuesday, September 28, 2010

External JS - steps to make it work

Well people,

Sorry to post something like it again, but the already posted
questions dont solve mine.

I have a line in my .html something like <body
onload="javascript:test();">

The function test() is in my own file test.js.

First I put test.js javascript file in the public tab of the module.
The browser did not found the function. But the file is in the same
path of the nocache.js

Second I put a <script src="/public/test.js"> in the gwt.xml. Same
result.

What know. Should I put a <script></script> in my html????? if so,
what is the benefit of using this???

Thanks in advance,

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment