allida77
01-15-2003, 07:06 PM
Is it possible to fire a onChange event on a parent page select box from a pop-up window? Currently I am looping through an array with form values and setting the select box value on the opener page. I tried to do an add focus but it didnt work.
(this is in the pop-up window)
for (i=0; i<myArray.length; i++) {
window.opener.chgRow(myArray[i],"on");
myfrmfld = "window.opener.document.frmPol.sltAgts" + myArray[i]
eval(myfrmfld).focus();
eval(myfrmfld).value = '<%=Request.Form("sltAgt")%>'
}
(on the parent page)
<select name="slt2" onChange="foo()">
On the parent page everytime one of these select boxes are changed it runs a onChange function. By setting these values from a pop-up window this onChange event is no fired. So I need to somehow fire the onChange when I change the value in my pop-up window.
Does this make sense?
(this is in the pop-up window)
for (i=0; i<myArray.length; i++) {
window.opener.chgRow(myArray[i],"on");
myfrmfld = "window.opener.document.frmPol.sltAgts" + myArray[i]
eval(myfrmfld).focus();
eval(myfrmfld).value = '<%=Request.Form("sltAgt")%>'
}
(on the parent page)
<select name="slt2" onChange="foo()">
On the parent page everytime one of these select boxes are changed it runs a onChange function. By setting these values from a pop-up window this onChange event is no fired. So I need to somehow fire the onChange when I change the value in my pop-up window.
Does this make sense?