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
Solved

VBScript / Hide Source Code

Posted on 1996-12-30
1
766 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
ID: 1835877
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

861 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