View Single Post
Old May 5th, 2006, 4: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