Access hidden field

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • T.

    Access hidden field

    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=hiddenfiel d>

    <iframe name="child" id="child" src="childform. asp" width="100%"
    height="88%" scrolling="auto " align="left"></iframe>

    </form>
    ..
    </html>



    childform.asp

    <html>
    ..
    <script language="javas cript">
    top.document.hi ddenfield.value = someValue;
    </script>
    ..
    </html>



  • Ray at

    #2
    Re: Access hidden field

    Hi T.



    Ray at work

    "T." <tmorrisnospam@ firstegg.com> wrote in message
    news:Oh5avMlkDH A.2652@TK2MSFTN GP09.phx.gbl...
    [color=blue]
    > I keep getting "Access denied"[/color]
    [color=blue]
    > <script language="javas cript">
    > top.document.hi ddenfield.value = someValue;
    > </script>[/color]


    Comment

    • T.

      #3
      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:OceQmQlkDH A.3688@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Hi T.
      >
      > http://www.aspfaq.com/5001
      >
      > Ray at work
      >
      > "T." <tmorrisnospam@ firstegg.com> wrote in message
      > news:Oh5avMlkDH A.2652@TK2MSFTN GP09.phx.gbl...
      >[color=green]
      > > I keep getting "Access denied"[/color]
      >[color=green]
      > > <script language="javas cript">
      > > top.document.hi ddenfield.value = someValue;
      > > </script>[/color]
      >
      >[/color]


      Comment

      • Ray at

        #4
        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:%23Yws3olk DHA.424@TK2MSFT NGP10.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:OceQmQlkDH A.3688@TK2MSFTN GP11.phx.gbl...[color=green]
        > > Hi T.
        > >
        > > http://www.aspfaq.com/5001
        > >
        > > Ray at work
        > >
        > > "T." <tmorrisnospam@ firstegg.com> wrote in message
        > > news:Oh5avMlkDH A.2652@TK2MSFTN GP09.phx.gbl...
        > >[color=darkred]
        > > > I keep getting "Access denied"[/color]
        > >[color=darkred]
        > > > <script language="javas cript">
        > > > top.document.hi ddenfield.value = someValue;
        > > > </script>[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...