Solved

VBScript and HTML

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML table 7 54
CSS alignment question 8 37
Mobile version of website does not react 6 50
Menu Inconsistent 3 20
This article discusses four methods for overlaying images in a container on a web page
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 videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now