Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 05-11-2006, 10:00 PM   #1 (permalink)
 
Newb Techie

Join Date: May 2006

Posts: 3

rohnds

Default VBscript debug

<html>
<head>
</head>
<body>
<script type="text/vbscript">
document.write("Hello from VBScript!")
</script>
</body>
</html>

The problem is, these codes generate 2 error.
Expected end of line
sytanx error

So I removed the "text" in the
<script type="text/vbscript"> statement to <script type="vbscript">and my errors were gone. But then my document.write statement then doesn't work. What is wrong with my orginal code.

Rohn
rohnds is offline  
Old 05-11-2006, 10:53 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

document.write is a javascript method

http://www.devguru.com/Technologies/...doc_write.html


i think the only way to write text to an html page with vbscript is to write a asp script using response.write

<%
response.write "some text"
%>
office politics is offline  
Old 05-11-2006, 11:08 PM   #3 (permalink)
 
Newb Techie

Join Date: May 2006

Posts: 3

rohnds

Default

using document.write statement, I am able to get the desired result although I get those 2 error. This is using IE. So the functionality isn't the issue. The problem I have is when I try to run my pages using Mozilla. None of my VBscript works.

Rohn
rohnds is offline  
Old 05-12-2006, 09:32 AM   #4 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

http://www.mozilla.org/support/firefox/faq

Quote:
Is Firefox more secure than Internet Explorer?
Yes, Firefox and all other Mozilla-based products are more secure. Why? Here is a list of the most important reasons:

It is not integrated with Windows, which helps prevent viruses and hackers from causing damage if they somehow manage to compromise Firefox.
There is no support for VBScript and ActiveX, two technologies which are the reasons for many IE security holes.
No spyware/adware software can automatically install in Firefox just by visiting a web site.
Firefox doesn't use Microsoft's Java VM, which has a history of more flaws than other Java VMs.
You have complete control over cookies.

office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On