Solved

VBScript / Hide Source Code

Posted on 1996-12-30
1
738 Views
Last Modified: 2012-06-21
1) Is there a way to keep people from viewing the
source code of HTML files?

2) When using VBScript in HTML files can the actual VB code be placed in another file like you would do with CGI scripts, or does the code actually have to be placed in the HTML file, and if you can put VBScript in another file, how would you call it in the HTML file?

Thank you in advance... I hope you understand what I'm asking, it's hard
to put in words.

Peter Fuller

0
Comment
Question by:kowgod
1 Comment
 

Accepted Solution

by:
tlangan earned 50 total points
Comment Utility
1) No, and 2) yes.  You can download for free at the MS web site a program called "Microsoft ActiveX Control Pad" which is an environment for writing VBScript, JScript, and linking them with ActiveX controls.  You can create something called an "HTML Layout".  This is a seperate file (usually with the ".ALX" extention.  Within code, you can call an HTML layout.  This can be done quite easily with the ActiveX Control Pad (which also automatically inserts those tricky ActiveX ID-#'s (You can insert ANY ActiveX control installed with your copy of IE 3).

Once you are finished, it will look something like this:

<OBJECT CLASSID="CLSID:812AE312-8B8E-11CF-93C8-00AA00C08FDF"
ID="mplayer_alx" STYLE="LEFT:0;TOP:0">
<PARAM NAME="ALXPATH" REF VALUE="file:C:\FrontPage Webs\Content\mplayer.alx">
 </OBJECT>

So, basically, the code will be an object inserted into your HTML page.  The only way one could access your ACTUAL code is by downloading and viewing the actual ALX file, making your code much more secure.


0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now