Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old May 5th, 2006, 3:35 PM   #11
blasterstudios
Newbie
 
Join Date: May 2006
Posts: 7
Rep Power: 0 blasterstudios is on a distinguished road
Send a message via ICQ to blasterstudios Send a message via AIM to blasterstudios Send a message via MSN to blasterstudios Send a message via Yahoo to blasterstudios
well, i've pretty much narrowed it down to a few sections of code that isn't working. Can you just look at the syntax of the following code and see if anthing looks wrong to you?
if(validRows.length >= 1){
  for (var i = 0; i < validRows.length; i++) {
	var fieldno = validRows[i].replace("parentRow","");
	var txtinput = validRows[i].replace("parentRow","parentName");
	eval("input=document.registerNew." + txtinput + ".value");
	var txtcombo = validRows[i].replace("parentRow","parentTitle");
	eval("combo=document.registerNew." + txtcombo + ".value");
	if(txtinput == "" || txtcombo == "0"){
		errorstring = "yes";
	}
   }
}
if (errorstring == "yes"){
	alert("Please fill in all parent names and relationships before adding more rows");
}
blasterstudios is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:22 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC