Solved

VBScript and HTML

Posted on 2000-05-15
5
252 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
[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
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
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 position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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).

717 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