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 6 of 6

Thread: JS Help

  1. #1
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default JS Help

    Hey,

    Right I've made an alert system for Powerpanel and the alert (which looks like a Habbo hotel alert) shows in a DIV which auto refreshes like every 10 seconds.

    In firefox the div updates fine but in IE it sort of caches the alerts.php page so it doesnt realise when an alert has been sent or not.

    So what I need to do is to stop IE from caching the page and always grab the pages new data.

    My current JS can be found at:
    http://www.powerpanel.duosystems.net/2.0/frontend.

    So if you know how I can stop it from caching the page that would be great!

    Thanks,

    -Simon

  2. #2
    Join Date
    Apr 2007
    Posts
    50
    Tokens
    0

    Default

    Your Powerpanel IS A COPY of KC2 LOL

    Soon To Be Released....

  3. #3
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    Quote Originally Posted by phpme View Post
    Your Powerpanel IS A COPY of KC2 LOL
    U IZ A NOOB LOL.


    Edited by Catzsy (Forum Super Moderator): Please consider the feelings of others.
    Last edited by Catzsy; 27-04-2007 at 07:10 PM.

  4. #4
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    Hey,

    Right I've made an alert system for Powerpanel and the alert (which looks like a Habbo hotel alert) shows in a DIV which auto refreshes like every 10 seconds.

    In firefox the div updates fine but in IE it sort of caches the alerts.php page so it doesnt realise when an alert has been sent or not.

    So what I need to do is to stop IE from caching the page and always grab the pages new data.

    My current JS can be found at:
    http://www.powerpanel.duosystems.net/2.0/frontend.

    So if you know how I can stop it from caching the page that would be great!

    Thanks,

    -Simon
    In theory, you should just be able to add the following PHP:

    PHP Code:
    <?php
    header
    ("Cache-Control: no-cache");
    ?>
    However, it's quite likely that you'll get Headers Already Sent errors - if you do, reply and I'll help



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  5. #5
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Well it uses the same style switcher as KP, lets see what it turns out like.

  6. #6
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Um... not caching... I believe that you can just use a meta tag for that can't you? I do know that it's not very complicated at all.

    If you want a JS solution though you can try posting on CodingForums.Com - they are always really helpful with all of my needs (im Troy297 incase you care).

Posting Permissions

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