Connecting Tech Pros Worldwide Forums | Help | Site Map

missing ; before statement

effendi@epitome.com.sg
Guest
 
Posts: n/a
#1: Jul 23 '05
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.nameCheck.location.href="//dbTeamNameValidation?OpenForm&ClassSection="
+
classSection+"-"+classNumber+"&teamchange="+teamchange+"&MemberLi st="+memberList+"&TeamName="
+teamName;
}
else if (teamNameTemp!=teamName)
{
parent.nameCheck.location.href="//dbTeamNameValidation?OpenForm&ClassSection="
+
classSection+"-"+classNumber+"&teamchange="+teamchange+"&MemberLi st=""&TeamName="
+teamName;
}
else
{
thisForm.submit()
}


Thanks


RobG
Guest
 
Posts: n/a
#2: Jul 23 '05

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.nameCheck.location.href="//dbTeamNameValidation?OpenForm&ClassSection="
> +
> classSection+"-"+classNumber+"&teamchange="+teamchange+"&MemberLi st="+memberList+"&TeamName="
> +teamName;
> }
> else if (teamNameTemp!=teamName)
> {
> parent.nameCheck.location.href="//dbTeamNameValidation?OpenForm&ClassSection="
> +
> classSection+"-"+classNumber+"&teamchange="+teamchange+"&MemberLi st=""&TeamName="[/color]

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

At at guess, you wanted:

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


--
Rob
effendi@epitome.com.sg
Guest
 
Posts: n/a
#3: Jul 23 '05

re: missing ; before statement


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

effendi@epitome.com.sg
Guest
 
Posts: n/a
#4: Jul 23 '05

re: missing ; before statement


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

effendi@epitome.com.sg
Guest
 
Posts: n/a
#5: Jul 23 '05

re: missing ; before statement


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

Closed Thread