T
T.
Hi group, I'm trying to write to a hidden field on a form from a page that
is loaded as the "src" in an iframe. I keep getting "Access denied" in the
javascript of childform.asp...I have tried many variation in trying to
reference the hidden field on the parent form with no success...can anyone
suggest the syntax?
Thanks much
here's sample code:
parentform.asp:
<html>
..
<form name=frm id =frm>
<type=hidden id=hiddenfield name=hiddenfield>
<iframe name="child" id="child" src="childform.asp" width="100%"
height="88%" scrolling="auto" align="left"></iframe>
</form>
..
</html>
childform.asp
<html>
..
<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>
..
</html>
is loaded as the "src" in an iframe. I keep getting "Access denied" in the
javascript of childform.asp...I have tried many variation in trying to
reference the hidden field on the parent form with no success...can anyone
suggest the syntax?
Thanks much
here's sample code:
parentform.asp:
<html>
..
<form name=frm id =frm>
<type=hidden id=hiddenfield name=hiddenfield>
<iframe name="child" id="child" src="childform.asp" width="100%"
height="88%" scrolling="auto" align="left"></iframe>
</form>
..
</html>
childform.asp
<html>
..
<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>
..
</html>