I have a page that opens a popUp. I am retrieving the values of a (previously stored) array on the opener in the popUp with success. I would like to restore the values of this previously saved array (from the opener which now resides on the popUp) into fields on the opener after a refresh (window.opener.history.go(0);) when I close the popUp (kind of a poor man's state management.) The problem I'm encountering is that I can't seem to reference the fields on the opener. I've used eval and referencing the name of the field in the forms collection on the opener with no success. Please see code below with commented out failed attemps.
NOTE: the elements (fields) on the opener are rendered from .Net, their names contain ":"'s and I have no control over their naming.
Any help ?
for (var i = 0; i < objStateArray.length; i++)
var ctlTextName = objStateArray[i].ctlTextName;
var ctlTextValue = objStateArray[i].ctlTextValue;
var ctlTypeName = objStateArray[i].ctlTypeName;
var ctlTypeValue = objStateArray[i].ctlTypeValue;
var ctlArrayName = objStateArray[i].ctlArrayName;
var ctlArrayValue = objStateArray[i].ctlArrayValue;
//eval("opener.document.Form1." + ctlTextName).value = ctlTextValue;