Re: Run Time Error. Expected ';'
- From: "Christopher J. Hahn" <cjhahn@xxxxxxxxx>
- Date: 26 Jul 2005 19:35:58 -0700
Michael Winter wrote:
> On 26/07/2005 06:23, Christopher J. Hahn wrote:
>
> > andy.herrera@xxxxxxxxx wrote:
> >
> >> I'm getting this Error Message. Expected ';'
>
> [snip]
>
> > The error is actually here:
> >
> >> <select name="selectTrans" onChange="If (this.value == 'checkout')
> >> window.location.href='CheckOut.php';">
>
> [snip]
>
> > Odd... I would've expected the error 'Object expected.', especially if
> > it's a runtime error.
>
> In both cases, the parser will be encountering a syntax error.
>
> If (...)
>
> will be considered a function call, with If as the identifier of that
> function. In the first case, what immediately follows is an assignment
> expression:
>
> A() a = b;
Put that way, it makes perfect sense. Thanks for clarifying that for
me.
[on using .value property of select elements]
>
> Older browsers may not support the property. NN4, for example, always
> returns null. It's briefly mentioned in the group FAQ.
Again, thank you. I hadn't seen that in the FAQ (I confess to not
having read *every* line of it).
> Mike
>
> --
> Michael Winter
> Prefix subject with [News] before replying by e-mail.
Good info, Mike. I appreciate it.
.
- References:
- Run Time Error. Expected ';'
- From: andy . herrera
- Re: Run Time Error. Expected ';'
- From: Christopher J. Hahn
- Re: Run Time Error. Expected ';'
- From: Michael Winter
- Run Time Error. Expected ';'
- Prev by Date: Re: this did not work.
- Next by Date: Re: getObjectName v0.1
- Previous by thread: Re: Run Time Error. Expected ';'
- Next by thread: Determine if the www-reader is in quirk mode?
- Index(es):
Relevant Pages
|