missing ; before statement

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • effendi@epitome.com.sg

    missing ; before statement

    Hi can anyone point out what is wrong with this code. I got the above
    error after introducing the "else if" statement

    if (newdoc=="isnew ")
    {
    parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
    +
    classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList="+membe rList+"&TeamNam e="
    +teamName;
    }
    else if (teamNameTemp!= teamName)
    {
    parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
    +
    classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList=""&Team Name="
    +teamName;
    }
    else
    {
    thisForm.submit ()
    }


    Thanks

  • RobG

    #2
    Re: missing ; before statement

    effendi@epitome .com.sg wrote:[color=blue]
    > Hi can anyone point out what is wrong with this code. I got the above
    > error after introducing the "else if" statement
    >
    > if (newdoc=="isnew ")
    > {
    > parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
    > +
    > classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList="+membe rList+"&TeamNam e="
    > +teamName;
    > }
    > else if (teamNameTemp!= teamName)
    > {
    > parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
    > +
    > classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList=""&Team Name="[/color]

    ---------------------------------------------------------------------^

    At at guess, you wanted:

    classSection + ... + "&MemberLis t=" + memberList + "&TeamName= "
    + teamName;
    [color=blue]
    > +teamName;
    > }
    > else
    > {
    > thisForm.submit ()
    > }
    >
    >
    > Thanks
    >[/color]


    --
    Rob

    Comment

    • effendi@epitome.com.sg

      #3
      Re: missing ; before statement

      thank Rob, it was the "" after the &MemberList that cuased the problem.

      Comment

      • effendi@epitome.com.sg

        #4
        Re: missing ; before statement

        thank Rob, it was the "" after the &MemberList that cuased the problem.

        Comment

        • effendi@epitome.com.sg

          #5
          Re: missing ; before statement

          thank Rob, it was the "" after the &MemberList that cuased the problem.

          Comment

          Working...