?
Solved

VBScript and HTML

Posted on 2000-05-15
5
Medium Priority
?
256 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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 …
Suggested Courses

752 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