Connecting Tech Pros Worldwide Forums | Help | Site Map

Access hidden field

T.
Guest
 
Posts: n/a
#1: Jul 19 '05
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>




Ray at
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Access hidden field


Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tmorrisnospam@firstegg.com> wrote in message
news:Oh5avMlkDHA.2652@TK2MSFTNGP09.phx.gbl...
[color=blue]
> I keep getting "Access denied"[/color]
[color=blue]
> <script language="javascript">
> top.document.hiddenfield.value = someValue;
> </script>[/color]


T.
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Access hidden field


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:OceQmQlkDHA.3688@TK2MSFTNGP11.phx.gbl...[color=blue]
> Hi T.
>
> http://www.aspfaq.com/5001
>
> Ray at work
>
> "T." <tmorrisnospam@firstegg.com> wrote in message
> news:Oh5avMlkDHA.2652@TK2MSFTNGP09.phx.gbl...
>[color=green]
> > I keep getting "Access denied"[/color]
>[color=green]
> > <script language="javascript">
> > top.document.hiddenfield.value = someValue;
> > </script>[/color]
>
>[/color]


Ray at
Guest
 
Posts: n/a
#4: Jul 19 '05

re: Access hidden field


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

Ray at work

"T." <tmorrisnospam@firstegg.com> wrote in message
news:%23Yws3olkDHA.424@TK2MSFTNGP10.phx.gbl...[color=blue]
> 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:OceQmQlkDHA.3688@TK2MSFTNGP11.phx.gbl...[color=green]
> > Hi T.
> >
> > http://www.aspfaq.com/5001
> >
> > Ray at work
> >
> > "T." <tmorrisnospam@firstegg.com> wrote in message
> > news:Oh5avMlkDHA.2652@TK2MSFTNGP09.phx.gbl...
> >[color=darkred]
> > > I keep getting "Access denied"[/color]
> >[color=darkred]
> > > <script language="javascript">
> > > top.document.hiddenfield.value = someValue;
> > > </script>[/color]
> >
> >[/color]
>
>[/color]


Closed Thread


Similar ASP / Active Server Pages bytes