missing ; before statement

E

effendi

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


Thanks
 
R

RobG

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

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

At at guess, you wanted:

classSection + ... + "&MemberList=" + memberList + "&TeamName="
+ teamName;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top