compatability issue

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

    compatability issue

    This is a repost, as no one could/decided to help me, and it's still a
    problem I have!

    I'm having a little problem which is bound to be simple to solve but I just
    can't find the answer.

    I have a file containing...

    <iframe name="submitWin dow" src="dochat.php "></iframe>
    <iframe name="refreshWi ndow" src="chatupdate .php"></iframe>

    and a section from the dochat.php file...

    parent.document .refreshWindow. location.reload ();


    So basically, the structure is i'm using a page in an iframe to reload a
    page in another iframe which both have the same parent. This code works fine
    in MSIE but I get the following error in netscape:

    Error: parent.document .refreshWindow has no properties
    Source File: dochat.php
    Line: 9

    If anyone can tell me what I need to do to make it work in netscape I'd be
    very happy!

    Thanks in advance :)


  • Martin Honnen

    #2
    Re: compatability issue



    Phillip Parr wrote:

    [color=blue]
    > <iframe name="submitWin dow" src="dochat.php "></iframe>
    > <iframe name="refreshWi ndow" src="chatupdate .php"></iframe>
    >
    > and a section from the dochat.php file...
    >
    > parent.document .refreshWindow. location.reload ();[/color]

    [color=blue]
    > Error: parent.document .refreshWindow has no properties
    > Source File: dochat.php
    > Line: 9[/color]

    Use
    if (parent.frames && parent.frames.r efreshWindow) {
    parent.frames.r efreshWindow.lo cation.reload() ;
    }
    that should work in both browsers, frames are accessible via the frames
    collection.


    --

    Martin Honnen

    Comment

    Working...