1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Iframe refresh ???

Discussion in 'Programming' started by nickstan, Sep 18, 2007.

  1. #1
    Hi,

    I been trying to get my iFrame to refresh for the last 8 hours and ended up with the entire site refreshing along with the iFrame.

    I tried the meta equiv code, but it sometimes work and most of the time it does not and sometime ended up reloading the entire page.

    http-equiv = refresh(10)
    Code (markup):

    than I tried using javascript which I found,

    function refreshiframe()
    {
    parent.iframeid.location.href="thepage.com/blah.html"
    setTimeout("refreshiframe()", 10000);
    }
    Code (markup):
    That works in IE perfectly and works of FF most of the time and did not work on Opera at all :eek:

    I finally give up now, is there any way I can refresh only the iFrame and not the entire site??

    Help meeeeeee!!! :(:(

    Thanks
     
    nickstan, Sep 18, 2007 IP
  2. Psych0

    Psych0 Banned

    Messages:
    99
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hey if you found that script , please share it with me.
     
    Psych0, Sep 19, 2007 IP
  3. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Is the first call to refreshiframe() done after the page loads?
    Also, instead of parent.iframeid, I would use:
    document.getElementById ? parent.getElementById('iframeid') : parent.all['iframeid']
     
    krt, Sep 19, 2007 IP
    nickstan likes this.
  4. nickstan

    nickstan Peon

    Messages:
    781
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for head up, finally got the dang thing to work :)

     
    nickstan, Sep 21, 2007 IP