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![]()

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.
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.
Try thatHTML 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>![]()
Ty +rephttp://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)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.
Want to hide these adverts? Register an account for free!