Hello people, I just started to learn javascript, and I really like it. I have created a nice web application with full javascript, my first one But I just noticed that anyone, can see the code. Is there a way to hide the js code? maybe using a framework like mootools or jquery? Or with php? Thank you in advance!
javascript is a client side code, you really can't effectively hide it. lot of people really thought about hiding it. seriously I would say don't waste your time thinking of it
use a js file to hold your javascript <SCRIPT LANGUAGE="JavaScript" SRC="myscript.js"> </SCRIPT> Code (markup): Then compress it with site like these http://dean.edwards.name/packer/
I am making a javascript site that uses Google Maps, I don´t want everyone to see how to create the maps I´m going to provide. Maybe with an XML? Or at least make the job hard to possible copycat. I was also thinking to make my own framework... Can´t believe there isnt a way to protect my JS code.!