473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.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

Jul 23 '05 #1
4 47322
ef*****@epitome.com.sg wrote:
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="
---------------------------------------------------------------------^

At at guess, you wanted:

classSection + ... + "&MemberList=" + memberList + "&TeamName="
+ teamName;
+teamName;
}
else
{
thisForm.submit()
}
Thanks

--
Rob
Jul 23 '05 #2
thank Rob, it was the "" after the &MemberList that cuased the problem.

Jul 23 '05 #3
thank Rob, it was the "" after the &MemberList that cuased the problem.

Jul 23 '05 #4
thank Rob, it was the "" after the &MemberList that cuased the problem.

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
4
by: SQLJunkie | last post by:
Here is an issue that has me stumped for the past few days. I have a table called MerchTran. Among various columns, the relevant columns for this issue are: FileDate datetime , SourceTable...
4
by: dcarson | last post by:
I've read about this error in several other discussions, but still can't seem to pinpoint the problem with my code. Everything seemed to be working fine for some time, but it now tends to bomb out...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
15
by: PagCal | last post by:
Is this language missing the functionality of a C/C++ 'continue' statement? For example: While NOT isEof() If condition ' a C or C++ continue would work here ' but we are forced to use a...
0
by: JohnR | last post by:
Hi all.. my application uses a custom dll which should be in the same directory as the exe file. If the dll file is missing the application immediately aborts with a "Application has generated an...
4
by: teddysnips | last post by:
I have a simple table with the following data: fldYear fldCode1 fldCode2 2000 ABC1 ABC12 2000 ABC1 ABC13 2001 ABC1 ABC12 2002 ABC1 ABC12 2002 ...
3
by: Fred Chateau | last post by:
Still working on my XML DataSet... Having moved on past difficult and complex problems, resolved with the assistance of everyone here, I find myself facing yet another problem. My XML document...
4
by: liz0001 | last post by:
Hi, I am getting this error when I try to run my code: Missing semicolon (;) at end of SQL statement However, there is a semicolon at the end of my statement. Here is the statement: INSERT...
5
by: fennychieck | last post by:
dear all, i've a problem here. everytime a user click on "approve" button, they'll always get database error. and when i check the error log, there are several fields that have missing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.