document.parent.frame.location = reloading all frames

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

    #1

    document.parent.frame.location = reloading all frames

    I have a simple script that uses next and previous buttons to change the
    content of another frame in a frameset. Every time I load the target frame, the
    frame containing the script is also loaded, clearing out all my variables. I
    can work around this issue with cookies, but that seems far too clumsy to be
    real. What am I missing?
    TheFNG
  • Martin Walke

    #2
    Re: document.parent .frame.location = reloading all frames

    Tricky to figure out without some code

    Martin
    "JWizardC" <jwizardc@aol.c om> wrote in message
    news:2004110823 5355.21909.0000 0411@mb-m06.aol.com...[color=blue]
    > I have a simple script that uses next and previous buttons to change the
    > content of another frame in a frameset. Every time I load the target[/color]
    frame, the[color=blue]
    > frame containing the script is also loaded, clearing out all my variables.[/color]
    I[color=blue]
    > can work around this issue with cookies, but that seems far too clumsy to[/color]
    be[color=blue]
    > real. What am I missing?
    > TheFNG[/color]


    Comment

    • VK

      #3
      Re: document.parent .frame.location = reloading all frames

      window.top.fram es['frameName'].location.href = works as needed


      Comment

      • Mick White

        #4
        Re: document.parent .frame.location = reloading all frames

        JWizardC wrote:[color=blue]
        > I have a simple script that uses next and previous buttons to change the
        > content of another frame in a frameset. Every time I load the target frame, the
        > frame containing the script is also loaded, clearing out all my variables. I
        > can work around this issue with cookies, but that seems far too clumsy to be
        > real. What am I missing?
        > TheFNG[/color]
        Keep track of your variables in a non-changing frame (top.frameName)
        or in the frameset document itself(top).
        Mick

        Comment

        Working...