View Full Version : Need HELP! With Iframe Refreshing
manufantom
05-09-2008, 08:44 PM
Hey Guys,
Anyone know if it possible to get one iframe to refresh another iframe for example, Iframe1 has an auto refresh script on it when Iframe1 refreshes Iframe2 refreshes when the page in Iframe1 has loaded.
Please help :)
iUnknown
05-09-2008, 09:21 PM
Put this on the page that the iframe is showing:
<meta http-equiv="refresh" content="5;url=page.html">
Edit the 5 to how many seconds before the refresh, and the page.html to your page's name.
manufantom
05-09-2008, 09:44 PM
thats not what i wanted to do lol... that would refresh the iframe the code is in and change the page in that iframe to a diffrent page. What i am after it for is that when Radio stats are offline/online the radio player iframe changes.
iUnknown
05-09-2008, 09:51 PM
Use your brain. Don't you work at extenhost or something? Anyway... you put page.html as the page you want to refresh... yes it can be the same as the page it's currently on... so it will refresh the radio statistics page every 5 seconds if you make it:
<meta http-equiv="refresh" content="5;url=radio_stats.php">
manufantom
05-09-2008, 10:03 PM
Yes and just because i work for a hosting company that doesnt make me an expert in coding. I am in expert in networking thoe. Anyway if you read thats not what i asked. I asked for a code that would refresh a diffrent iframe to what the code is in, for example when the radio stats say online it refresh's the radiobox and goes to a page which shows the player. When the radio stats say offline the radiobox refreshes and goes to a page which doesnt show the player.
iUnknown
05-09-2008, 10:07 PM
Ah right sorry. Erm, what about putting the radio player code in the radio stats bit that shows when it's online? Otherwise you could develop a bit of PHP using mysql and when the radio stats are online it updates a database saying stats = online or something and the page in the iframe that the radio player sometimes appears in checks the database and shows something for stats =offline and the radio player for stats = online
:)
I could code you that but I don't have the time to do it for free.
Edit: By the way, both iframes would be refreshing. The stats and the one that sometimes shows the radio player (and therefore checking the database regularly).
manufantom
05-09-2008, 10:25 PM
hm lol ill have a look around cheers anyway
Trigs
20-10-2008, 01:31 AM
use php to do it. much easier.
use php to do it. much easier.
Maybe post how to do it then?!
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.