• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

VBScript and HTML

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
cantrell
Asked:
cantrell
  • 2
  • 2
1 Solution
 
CJ_SCommented:
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
 
cantrellAuthor Commented:
doesn't seem to work...???
0
 
CJ_SCommented:
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
 
cantrellAuthor Commented:
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
 
tzaradCommented:
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now