![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
|
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");
} |
|
|
|
|
|
#12 |
|
Newbie
|
Rock On! I think i figured it out. Instead of using error or errorstring, i needed: document.error or document.errorstring.
Moving along... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|