There is no way to totally protect the code. Javascript as to be executed by the users browser. So the code has to be visible to the browser.
If its visible to the browser, a user can view it to. There are more tricks you can do to make it harder to find the code (beyond just obfuscating it) - but they will vastly complicate your codebase and your application. And they will never be able to totally protect it anyway, just make it slightly harder. On 7 April 2011 11:44, en4ce <[email protected]> wrote: > i duno, thats no protection, if someone what to read that compiled > code, he just "unpack" - "uncompile" it, at least i always do so ;) > > there is no real protection to js anyway > > here is on of the unpacker iam using: > http://www.strictly-software.com/unpacker > > On 7 Apr., 10:28, James McGill <[email protected]> wrote: >> Take a look at this. It will obfuscate your code, which makes it >> harder for other people to read. >> >> http://code.google.com/closure/compiler/ >> >> On Thu, Apr 7, 2011 at 3:57 PM, FARAH SIRAJ >> >> >> >> >> >> >> >> <[email protected]> wrote: >> > Hi all, >> > I have made the code in javascript using notepad which read excel data and >> > plot it on google maps. I want to protect my code to be viewed. How can i >> > do >> > this. >> > Can anyone help me to fix it. >> > Thanks in advance. >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.
