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!


Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    You don't have to use ajax for this purpose, there is another way of doing it which is simpler and without ajax.

    Code:
    <script>
    function reload_div(page,div) {
    window.open(page,div);
    setInterval('reload_div("'+page+'","'+div+'")',20000);
    }
    </script>
    Then just call the javascript function on page load.

  2. #12
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    would that open in the div the other question is would it work :S

  3. #13
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    Yes the window.open(pageurl,window) allows you to open up pages into a div without refreshing the page. It is just simple javascript

  4. #14
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    Ill try it Thanks, repped if i can mate.
    according to my technical director it wouldnt work
    setInterval('reload_div("'+page+'","'+div+'")',200 00);
    Would create a continuous loop
    window.open(page,div);
    Would open a new window


    but thats according to him
    Last edited by Eccentric; 15-09-2007 at 09:05 PM.

  5. #15
    Join Date
    May 2007
    Posts
    467
    Tokens
    0

    Default

    Did you end up getting this to work or getting the code if so can you post it here so we can see

Page 2 of 2 FirstFirst 12

Posting Permissions

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