470,855 Members | 1,149 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Access hidden field

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>

Jul 19 '05 #1
3 5513
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
I keep getting "Access denied" <script language="javascript">
top.document.hiddenfield.value = someValue;
</script>

Jul 19 '05 #2
T.
Ray will I get the same level of love and support I've recd in this
newsgroup?

Thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
I keep getting "Access denied"

<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>


Jul 19 '05 #3
The world is nothing but love. Many of the same people watch that group as
well.

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Ray will I get the same level of love and support I've recd in this
newsgroup?

Thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
I keep getting "Access denied"

<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>



Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Roy Adams | last post: by
4 posts views Thread by Joe | last post: by
7 posts views Thread by tshad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.