www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] Document with two iFrames - get one to reload the other

Hybrid View

  1. #1
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582

    resolved [RESOLVED] Document with two iFrames - get one to reload the other

    Hello, everyone.

    I've seen four or five different ways to get an iFrame to refresh/reload another iFrame, and so far none have worked. This doesn't need to be cross-browser compatible - everyone here is forced to use IE7 or IE8.

    I have a page that contains two iFrames. I would like iFrame A to force iFrame B to reload().

    From within iFrame A, I've tried..
    Code:
    parent.getElementById("frameNameB").reload();
    parent.getElementById("frameNameB").reload(true);
    parent.getElementById("frameNameB").window.reload();
    parent.getElementById("frameNameB").window.reload(true);
    parent.getElementById("frameNameB").location.reload();
    parent.getElementById("frameNameB").location.reload(true);
    parent.getElementById("frameNameB").contentWindow.reload();
    parent.getElementById("frameNameB").contentWindow.reload(true);
    parent.document.getElementById("frameNameB").reload();
    parent.document.getElementById("frameNameB").reload(true);
    parent.document.getElementById("frameNameB").window.reload();
    parent.document.getElementById("frameNameB").window.reload(true);
    parent.document.getElementById("frameNameB").contentWindow.reload();
    parent.document.getElementById("frameNameB").contentWindow.reload(true);
    parent.frames("frameNameB").contentWindow.reload();
    parent.frames("frameNameB").contentWindow.reload(true);
    .. and none have worked.

    Has anyone else been successful in doing this?

    BTW.. my IE settings are set so that I get fresh information with every page load, it does not use cached data.

    Thanks,

    ^_^

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    Never mind.. I just created a function in the parent page, called it from one of the child iFrames, and set the function to "element.src = element.src + '&a=1';" and that took care of it.

    ^_^

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles