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 and HTML

Posted on 2000-05-15
5
240 Views
Last Modified: 2010-04-09
Is there any way to hide the contents of your vbscript from the 'view source' feature? In other words, much like you can put your JavaScript in .js files and read them from there - can you do the same thing, or something similar with VB Script?
0
Comment
Question by:cantrell
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 2813460
yes, there are .vbs files which contain all VBscript code. Just like the .inc files (include files)

INCLUDE THEM LIKE

<!--#INCLUDE VIRTUAL="MYFILE.INC"-->

damn caps lock.

or instead of virtual use file.
0
 
LVL 2

Author Comment

by:cantrell
ID: 2814327
doesn't seem to work...???
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 2814524
Always worked for me.....

well, to be honest I use these with ASP so I kinda assumed that it would work for you too....
0
 
LVL 2

Author Comment

by:cantrell
ID: 2814674
I understand. I don't use asp. Unfortunately, my server doesn't support .asp pages.

I figured it out though. Thanks for your help.
0
 
LVL 5

Accepted Solution

by:
tzarad earned 50 total points
ID: 2820487
You can use the following :
<Script Language="VBScript" src="myfile.vbs"></Script>

The file is not displayed in the view source.

Hope it helps...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

856 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