Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default JS/AJAX help [+rep and 1HC]

    I need an ajax script that can display a file called data.txt and refresh it every 3 seconds. Please dont suggest iframes because they make a horrible noise when they refresh.

    +rep and 1hc on habbo if you can make or find me one
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    http://www.pixel2life.com/forums/ind...dpost&p=245699 Google "Auto ajax div refresh"
    (To display the content off the file just use an PHP include in the actual div)
    Last edited by --ss--; 01-06-2008 at 03:40 PM.

  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    HTML Code:
    <script src="http://www.habbopress.com/maintain/prototype.js" type="text/javascript"></script>
    <script src="http://www.habbopress.com/maintain/scriptaculous.js" type="text/javascript"></script>
    <div id="databox">Loading...</div>
    <script>
    new Ajax.PeriodicalUpdater('databox', 'data.txt', {
      method: 'get', frequency: 3
    });</script>
    Try that

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by --ss-- View Post
    http://www.pixel2life.com/forums/ind...dpost&p=245699 Google "Auto ajax div refresh"
    (To display the content off the file just use an PHP include in the actual div)
    Ty +rep Ive send u an fr on habbo if u want the hc.

    edit, cant give u rep atm
    Last edited by Decode; 01-06-2008 at 03:50 PM.
    Lets set the stage on fire, and hollywood will be jealous.

Posting Permissions

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