Expression Expected

Posted by coffeeaddict on Stack Overflow See other posts from Stack Overflow or by coffeeaddict
Published on 2010-04-22T21:19:21Z Indexed on 2010/04/22 21:23 UTC
Read the original article Hit count: 217

Filed under:

I cannot figure out what I'm doing wrong syntactically here:

function PlaceOrder(button)
{
    var isValid;

    if (buttonIsSelected())
    {
        showsMessage(btn, "showTestMessage2);
        isValid = true;
    }
    else
    {
        Page_ClientValidate();
        if (Page_IsValid)
        {
            showMessage(btn, "testMessage");
            isValid = true;
        }
    }

    return isValid; // error happens here
}

© Stack Overflow or respective owner

Related posts about JavaScript