in reply to How to hide JAVASCRIPT coding from CGI?

About the best you can do is put the Javascript stuff in a separate file, which is also handy because now you don't have to maintain the Javascript in multiple places.

Ultimately, the browser needs to see it to use it, and anything the browser can see, a user can see.

Never trust the javascript validation to do the work though. Verify everything on the server side.

--
brian d foy <bdfoy@cpan.org>
  • Comment on Re: How to hide JAVASCRIPT coding from CGI?