Solved

java

Posted on 2000-05-18
5
196 Views
Last Modified: 2010-04-01
i have some java script that i would like to hide from the public but i have no idea how. please could you give me some html code that could hide it or something so that visitors could not copy it please.
0
Comment
Question by:ZEON101
5 Comments
 
LVL 3

Expert Comment

by:ovidiucraciun
ID: 2821544
java question?
0
 
LVL 2

Accepted Solution

by:
lilian_kelly earned 100 total points
ID: 2821648
If you put your code in a .js file and then include the file then when you do a view source all that will be seen is the name of the js file. But thats does not stop them trying to download the js file.

Place this in the head of the js file.

<SCRIPT SRC="myjsfile.js></SCRIPT>

0
 
LVL 1

Expert Comment

by:yatest5
ID: 2821677
If you place everything beween the <SCRIPT> and </SCRIPT> tags in a name.js file you can include it in your HTML by doing

<SCRIPT SRC=name.js></SCRIPT>

This will hide it from the casual browser.  Anything more secure that that is difficult.  You could try getting some obfuscation software which changes the names of things in your code to render it meaningless to the outside world.  I don't know where to find any unfortunately though.

Good luck,

Tom
0
 
LVL 1

Expert Comment

by:yatest5
ID: 2821690
Oops, we posted that at the same time - touche Lilian.
0
 

Author Comment

by:ZEON101
ID: 2833129
thanx everyone
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 70
ejb wildfly example 2 75
how to debug htl and js pages 8 58
Is there a simpler dropbox system? 10 44
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question