Refreshing one iframe from another?

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

    Refreshing one iframe from another?

    Hi there..

    I have a file that contains three iframes, when one of the iframes is
    updated (via <form target ...> then it must 'refresh/reload' the originating
    iframe, ie. the iframe that sent the form action.

    I've looked around, but I haven't managed to find a method yet, that does
    not utilitize some MS only method. So how do I do it, and maintaining W3C
    compatibility?

    --
    I doubt, therefore I might be.


  • Martin Honnen

    #2
    Re: Refreshing one iframe from another?



    Kim Noer wrote:

    [color=blue]
    > I have a file that contains three iframes, when one of the iframes is
    > updated (via <form target ...> then it must 'refresh/reload' the originating
    > iframe, ie. the iframe that sent the form action.
    >
    > I've looked around, but I haven't managed to find a method yet, that does
    > not utilitize some MS only method. So how do I do it, and maintaining W3C
    > compatibility?[/color]

    Not W3C but if you use
    <iframe name="iframe1" ...
    and
    <iframe name="iframe2"
    then you can script
    if (parent.frames. iframe2) {
    parent.frames.i frame2.location .reload();
    }
    that is more compatible with existing browsers than relying on W3C DOM
    stuff where you need
    <iframe id="iframe1" ...
    and
    <iframe id="iframe2"
    with script
    if (parent.documen t.getElementByI d) {
    var iframe2 = parent.document .getElementById ('iframe2');
    if (iframe2 && iframe2.default View) {
    iframe2.default View.location.r eload();
    }
    }
    --

    Martin Honnen

    Comment

    • Kim Noer

      #3
      Re: Refreshing one iframe from another?

      "Martin Honnen" <mahotrash@yaho o.de> wrote in message
      news:41498247$0 $18565$9b4e6d93 @newsread2.arco r-online.net
      [color=blue]
      > Not W3C but if you use (...)
      > that is more compatible with existing browsers than relying on W3C DOM[/color]

      Thanks a bunch, this one worked without any problem (both in IE and
      Firefox).

      --
      I doubt, therefore I might be.


      Comment

      Working...