Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9
  1. #1

    Default Need HELP! With Iframe Refreshing

    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
    Thanks TJ
    Thored - HabboUK
    manufantom - HabboUS

  2. #2
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    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.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  3. #3

    Default

    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.
    Thanks TJ
    Thored - HabboUK
    manufantom - HabboUS

  4. #4
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    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">
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  5. #5

    Default

    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.
    Thanks TJ
    Thored - HabboUK
    manufantom - HabboUS

  6. #6
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    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).
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  7. #7

    Default

    hm lol ill have a look around cheers anyway
    Thanks TJ
    Thored - HabboUK
    manufantom - HabboUS

  8. #8
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    use php to do it. much easier.
    Vouches
    [x][x]

  9. #9
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    use php to do it. much easier.
    Maybe post how to do it then?!

Posting Permissions

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