开发者

How can I reload an iFrame without the page loading icon?

This seems to work in Chrome well, but I have this iframe di开发者_如何学运维splaying content from a mysql table and I want to refresh it every 10 seconds, how can I do this without the user knowing the iframe is being reloading? (No loading icon)


in header if iframe page , you can use html meta tag instead of javascript.

<meta http-equiv="refresh" content="x" />

Example for 10 second 
<meta http-equiv="refresh" content="10" />


With Javascript, you could have two iframes which share the load. When one fully loads, it swaps its position with the other iframe so the user never sees the load.

Demo: http://jsfiddle.net/AlienWebguy/NZjL8/1/

For the demo I have it refresh every 5 seconds.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜