Solved

java

Posted on 2000-05-18
5
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

726 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