No, it's not. The browser will see it, and so will your users if they do view->source. As the previous answers have noted, GWT optionally obfuscates JS code (i.e., makes it smaller, less readable), but that is done largely for performance purposes (the smaller your JS code, the less you have to download, the faster your app will be), not for hiding it from the user. There are tools that undo obfuscation. In other words, anything secret/prorietary should run on the *server*-side of your application. This, by the way, goes for all JS/AJAX apps and is not particular to GWT.
kathrin On Wed, Mar 31, 2010 at 1:58 PM, NeuroPulse <[email protected]> wrote: > What I mean is, is it compiled like C++ is compiled into a program? > > On Mar 31, 12:52 pm, Chris Lercher <[email protected]> wrote: > > If the JavaScript should be executed in the browser (as usual), then > > it will have to be downloaded to the browser. This means, that it can > > also be copied. GWT offers an option to obfuscate the generated code, > > and one of the effects of this is, that it's harder for someone to > > read the code. But it could still be copied. So, if you have some > > proprietary algorithms, you might want to run them on the server. > > > > Chris > > > > On Mar 31, 2:46 pm, NeuroPulse <[email protected]> wrote: > > > > > Greetings, > > > > > Before I start writing Javascript, I am trying to find out if anyone > > > can see and copy it like HTML? > > > > > Every page with Javascript I have seen so far has a link to the code > > > in the HTML. > > > > > Thanks > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
