refreshing two frames with only one click

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

    refreshing two frames with only one click

    Hi,

    I have a web welcome-page consisting of three frames. On the left there is
    an index. The two others (above each other on the right of the screen)
    contain data related to the index-items.

    I'm looking for the possibility to refresh the two related frames when an
    index-item in the frame on the left is clicked.

    I tried this with the HREF-command but this only works for one frame at the
    time.
    <a href = "info1.htm" target = right_above>ind ex-item_1</a>
    or
    <a href = "info2.htm" target = right_under>>in dex-item_1</a>

    Id there a way to solve this in java-script? Or perhaps HTML?

    Thanks,

    Sjoerd


  • Martin Honnen

    #2
    Re: refreshing two frames with only one click



    sjoerd wrote:[color=blue]
    > Hi,
    >
    > I have a web welcome-page consisting of three frames. On the left there is
    > an index. The two others (above each other on the right of the screen)
    > contain data related to the index-items.
    >
    > I'm looking for the possibility to refresh the two related frames when an
    > index-item in the frame on the left is clicked.
    >
    > I tried this with the HREF-command but this only works for one frame at the
    > time.
    > <a href = "info1.htm" target = right_above>ind ex-item_1</a>
    > or
    > <a href = "info2.htm" target = right_under>>in dex-item_1</a>
    >
    > Id there a way to solve this in java-script? Or perhaps HTML?[/color]

    <a href="info1.htm "
    target="right_a bove"
    onclick="if (parent.frames. right_under) {
    parent.frames.r ight_under.loca tion.href = 'info2.htm';
    }
    return true;">

    --

    Martin Honnen


    Comment

    • Andoni

      #3
      Re: refreshing two frames with only one click

      Yes, in both actually.
      In JavaScript you can use the button/link click to run a method which does a
      location.replac e with the particular page names you want to put in there.

      In html you can simply have a two frame page in which the second
      (right-hand) frame is a frameset of two frames one on top of the other.

      Hope that helps,

      Andoni.


      "sjoerd" <iwi@iwi.myweb. nl> wrote in message
      news:bl1duk$5sj $1@news2.tilbu1 .nb.home.nl...[color=blue]
      > Hi,
      >
      > I have a web welcome-page consisting of three frames. On the left there is
      > an index. The two others (above each other on the right of the screen)
      > contain data related to the index-items.
      >
      > I'm looking for the possibility to refresh the two related frames when an
      > index-item in the frame on the left is clicked.
      >
      > I tried this with the HREF-command but this only works for one frame at[/color]
      the[color=blue]
      > time.
      > <a href = "info1.htm" target = right_above>ind ex-item_1</a>
      > or
      > <a href = "info2.htm" target = right_under>>in dex-item_1</a>
      >
      > Id there a way to solve this in java-script? Or perhaps HTML?
      >
      > Thanks,
      >
      > Sjoerd
      >
      >[/color]


      Comment

      • Daniel Kirsch

        #4
        Re: refreshing two frames with only one click

        sjoerd wrote:[color=blue]
        > I'm looking for the possibility to refresh the two related frames when an
        > index-item in the frame on the left is clicked.
        >
        > I tried this with the HREF-command but this only works for one frame at the
        > time.
        > <a href = "info1.htm" target = right_above>ind ex-item_1</a>
        > or
        > <a href = "info2.htm" target = right_under>>in dex-item_1</a>
        >
        > Id there a way to solve this in java-script? Or perhaps HTML?[/color]

        Not in HTML.
        Using JavaScript you might try:

        <a href="info1.htm "
        target="right_a bove"
        onclick="
        top.frames['right_above'].location.href= 'info1.htm';
        top.frames['right_under'].location.href= 'info2.htm';
        return false;"[color=blue]
        >index-item_1</a>[/color]

        HTH
        Daniel

        Comment

        • Chef Blair

          #5
          Re: refreshing two frames with only one click

          > I have a web welcome-page consisting of three frames. On the left there is[color=blue]
          > an index. The two others (above each other on the right of the screen)
          > contain data related to the index-items.
          >
          > I'm looking for the possibility to refresh the two related frames when an
          > index-item in the frame on the left is clicked.
          >
          > I tried this with the HREF-command but this only works for one frame at[/color]
          the[color=blue]
          > time.
          > <a href = "info1.htm" target = right_above>ind ex-item_1</a>
          > or
          > <a href = "info2.htm" target = right_under>>in dex-item_1</a>
          >
          > Id there a way to solve this in java-script? Or perhaps HTML?
          >
          > Thanks,
          >
          > Sjoerd
          >[/color]

          Try this, MenuBar and Content are the Frame names

          <script language="JavaS cript" type="text/javascript">
          function show()
          {
          parent.MenuBar. location.href=' menu0.shtml';
          parent.Content. location.href=' option.shtml';
          }
          </script>


          Comment

          Working...