Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting Expected ; (semicolon) in simple VBScript only page

129 views
Skip to first unread message

Colin Colin

unread,
Mar 1, 2004, 9:29:22 AM3/1/04
to
I am working on an ASP page that also includes some basic Client Side
validation. I am just starting to work with VBScript on the client so I
threw together a little test file and I keep getting:
Error: Expected ';'
on the first line after <SCRIPT LANGUANGE="VBScript">

I have tried subs, functions, etc... Why is it expecting a semicolon?
<HTML>
<HEAD>
<SCRIPT LANGUANGE="VBScript">

Function Test()

End Function

</SCRIPT>

</HEAD>
<BODY>

</BODY>
</HTML>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Chris Barber

unread,
Mar 1, 2004, 9:50:56 AM3/1/04
to
Try checking your spelling:

<SCRIPT LANGUANGE="VBScript">

You misspelt 'LANGUAGE' so it'll default to client-side Javascript.

My advice, forget VBScript for client-side and take 5 mins to learn
Javascript - it's easy and *every* browser can use it. VBScript is also
pants at client-side stuff anyway - believe me, I tried it for two years and
finally gave up and now I write *everything* (including ASP) in Javascript.

Chris.


"Colin Colin" <cc...@ghs.guthrie.org> wrote in message
news:u9x3Xm5$DHA....@TK2MSFTNGP09.phx.gbl...

Colin Colin

unread,
Mar 1, 2004, 10:29:19 AM3/1/04
to

Man what an idiot, thanks.

Tom Lavedas

unread,
Mar 1, 2004, 1:57:09 PM3/1/04
to
You're getting the error becasue you misspelled the
word 'Language' in your opening <SCRIPT> tag and
therefore, the JScript interpreter is trying to process
your script.

Tom Lavedas
===========

>.
>

Roland Hall

unread,
Mar 2, 2004, 2:49:13 AM3/2/04
to

"Colin Colin" <cc...@ghs.guthrie.org> wrote in message
news:OOjy3H6$DHA....@tk2msftngp13.phx.gbl...
:
: Man what an idiot, thanks.

You're not alone. If typos make you an idiot, we have all been idiots
before and will all be again. Welcome to the group. What took ya' so long?
(O:=

0 new messages