Access hidden field

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>
 
R

Ray at

The world is nothing but love. Many of the same people watch that group as
well.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,126
Messages
2,570,750
Members
47,308
Latest member
TorriLangr

Latest Threads

Top