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

Thread: Ajax refresh

  1. #1
    Join Date
    Jan 2007
    Posts
    190
    Tokens
    0

    Default Ajax refresh

    HI there how do i make a Ajax refresh as i am not good at Ajax i want a page to reload like in a <div> or some thing thank you.

  2. #2
    Join Date
    Mar 2007
    Posts
    8
    Tokens
    0

    Default

    hay i found this on the prototype website
    Automate requests with the Ajax.PeriodicalUpdater

    You find the Ajax.Updater cool, but want to run it in periodical intervals to repeatedly fetch content from the server? Prototype framework has that, too - it's called Ajax.PeriodicalUpdater, and basically it's running Ajax.Updater at regular intervals.

    new Ajax.PeriodicalUpdater('products', '/some_url',
    {
    method: 'get',
    insertion: Insertion.Top,
    frequency: 1,
    decay: 2
    });
    Hope this helps ya, im trying to do the same thing too, so hopefully i could help you. By the way for that to work u need to download the prototype script (its javascript) Download.
    Anyway Good luck

Posting Permissions

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