Solved

VBScript and HTML

Posted on 2000-05-15
5
236 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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" …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

823 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