Re: Run Time Error. Expected ';'



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.

.



Relevant Pages

  • Re: <customErrors mode="Off" />
    ... Mike ... Integrated Windows) according to ... session identifier to the URL. ... >> Runtime Error ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: REFRENCE A TEXTBOX ON A SHEET IN EXCEL 2000
    ... Thnks Mike ... "Runtime error 438 - object doesnt support this property or message" ... Sub marine() ... I have a text box on sheet 2 which I want to populate with results from 3 ...
    (microsoft.public.excel.programming)
  • Re: Run Time Error. Expected ;
    ... it's a runtime error. ... will be considered a function call, with If as the identifier of that function. ... I've never had a problem with it myself, but I'm told that compatibility is limited or unpredictable. ... It's briefly mentioned in the group FAQ. ...
    (comp.lang.javascript)
  • Re: <customErrors mode="Off" />
    ... Mike, ... This can also occur if the local ASPNET user does not have access to the ... "Greg Burns" wrote: ... >> Runtime Error ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Connection string with a password
    ... mike w. ... > When I run the following code I get a runtime error on the OPEN. ... The workgroup application file is missing or ...
    (microsoft.public.vb.database.ado)