[thelist] Help Finding & Fixing VBScript Error... Continued

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Thu Mar 10 22:14:13 CST 2005

	Okay, now I'm thinking maybe you're just not terminating one of
your VBScript statements (it's really hard to tell without seeing all
the code).  For example, you may have a line with an If...Then and then
no End If below it.

	If you still can't find the source of the problem, feel free to
send me the file -- minus any sensitive data like logins -- and I'll
scan through it for any obvious omissions.



-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Administrative HQ


Thanks for answering.

Barry wrote:
>159 function window_onload()
> > 161
> > 162
> //alert(document.getElementById("UsrId").value);
> > 163 }
> > 164
> > 165 function snd_onclick() {
> > 166 document.getElementById("snd").disabled=true;
> > 167 var dosub=true;
> > 168
> > 169 if (document.getElementById...Etc., Etc.
> > ********************
> Could it be that line 163 has } and there is no
> corresponding { before it,
> ie on line 159 ? So line 159 should be:
> Function window_onload() {

The same error returns with or without the {.

>Peter wrote:

>    Offhand, it looks like you're trying to run a
>Javascript function
>in a VBScript environment.  Are you missing a %> tag?

I think that mught be the problem, but don't know how
to fix it. I checked the original page and it DOES say javascript. So I
tried putting:


and then

<script language="JavaScript">

and then

<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>

just before line 159 (where the trouble seems to
start). But both return the same thing:
Microsoft VBScript compilation error '800a0400' 

Expected statement 

/pay_paypal.asp, line 155 


If the problem really is switching script, isn't one
of the above supposed to fix it?

If, as Peter suggests, an %> tag would help, does
anybody know where it should go?

Thanks very much.

Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list