?
Solved

VBScript / Hide Source Code

Posted on 1996-12-30
1
Medium Priority
?
802 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
[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
1 Comment
 

Accepted Solution

by:
tlangan earned 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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 …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

649 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