I’m familiar with passing text and radio values from parent/child and vice-versa.
I have a parent form…opens child…multiple select drop down box appears with 5 states…choose any 3 for example and to check I have the choices fill in a table on the child just to be sure…OK, this all works. Here’s my problem: I can’t seem to pass the values selected in the child back to the parent. Partial child code is:
THIS PART TAKES THE MULTIPLE SELECTIONS AND MAPS THEM
function States5Year() {
if (document.childForm1.select1.options[0].selected)
document.childForm1.state1.value=document.childForm1.select1.options[0].value;
if (document.childForm1.select1.options[1].selected)
document.childForm1.state2.value=document.childForm1.select1.options[1].value;
if (document.childForm1.select1.options[2].selected)
document.childForm1.state3.value=document.childForm1.select1.options[2].value;
if (document.childForm1.select1.options[3].selected)
document.childForm1.state4.value=document.childForm1.select1.options[3].value;
if (document.childForm1.select1.options[4].selected)
document.childForm1.state5.value=document.childForm1.select1.options[4].value;
}
THIS IS SUPPOSED TO TAKE BACK
TO PARENT VALUES FROM CHILD
function updateParent(childForm1) {
opener.document.forms[0].state1.value = document.childForm1.state1.value;
opener.document.forms[0].state2.value = document.childForm1.state2.value;
opener.document.forms[0].state3.value = document.childForm1.state3.value;
opener.document.forms[0].state4.value = document.childForm1.state4.value;
opener.document.forms[0].state5.value = document.childForm1.state5.value;
self.close();
return false;
The 1st part works, its the second part that has me up a tree. Thoughts or suggestions please.
Thanks,
Ron