I am working with a third party banner provider who is loading a small ad into an IFRAME (it's the one under "Se min auktion" on the right). It refreshes every 6 seconds using a META refresh tag, and it seems to function properly (even though the meta refresh seems to me like a pretty poor choice over an Ajax call, but it wasn't up to me).

The thing is, when I look at the IFRAME in Firebug, it seems that there are TWO html elements inside it. Both html elements contain the full contents of the IFRAME source document, though only one of them is refreshing every 6 seconds.

I don't know why the refresh is acting like this, but it seems to me that there should only be one html element inside the iframe, so I'm betting there is a bug somewhere. Any ideas?

1 answer

danwellman 5600

I don't think this is a bug with the meta-refresh tag tbh as I would expect a new html element to be added on each refresh if this were the case. However, it may be some kind of bug with firefox (or even firebug) because in IE8 dev tools it only shows 1 html element inside the iframe. There should only be one html element inside the iframe.

Regardless of the cause, the problem is within the iframe so i don't think you could fix it, it would need to be fixed at the source of the content which you wouldn't have access to without some kind of excessive server-side hack.

It seems to function as intended, I would accept it or find another banner provider...

Answered over 9 years ago by danwellman
  • Yea, I agree with Dan. A for the meta-refresh, though primitive, still works when javascript is disabled. Nothing shabby about it for this usage. o.k.w over 9 years ago