On a $$ViewTemplate, I have an iframe which opens a child window. A button on the child window can get a handle on the iframe with the following code:
alert(opener.parent.frames[“frameName”].name);
My question is this - how might this button refer to a field on the $$ViewTemplate that’s not in the iframe?
I’ve already tried the following, plus several variations of these without success:
alert(opener.parent.frames[“frameName”].document.forms[0].FieldName.value);
alert(opener.parent.parent.frames[“frameName”].document.forms[0].FieldName.value);
alert(window.parent.document.forms[0].FieldName.value);
alert(window.top.document.forms[0].FieldName.value);
I’d appreciate any ideas on this. Thanks.