Hello, I just want to know how can I protect my JS files? I want to protect these files, so no one can read 'em! Cheers!
What you want is a javascript source code obfuscator. Do a google search on "javascript obfuscator" and you'll get lots of results.
JavaScript is client side software. It runs in the browser of your visitor. If no one can read it, no one can execute it. All what you could do is to obfuscate it, but a clever user could read it anyway (as his browser can). Jean-Luc
i dont understand why you need the hastle to make your script unreadable by the human eye ... if it is something really important then best you do the coding server side
Perhaps he don't want someone stole his script without his permission.... I think that's his main purpose for hiding her script. Btw, you may not make any link exchange with hiding your script!
There is a script for doing that but requires your server support ASP http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8053&lngWId=4 Code (markup):
You cannt hide the javascript. But you can do obfuscation. Use Ajax, so that you can hide mainlogic on the server and remaining in the javascript.