Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 419
0 Users 11 Guests Online
Forum Index » TutorialNinja » Chat refresh?
Posted on Friday 6th June 2008 at 12:09 PM
ilyas-shezad
templates/default/images/noavatar.png's Avatar
Junior Member
Okay i saw another thing on this. You know when the page reloads like every 10 seconds... is it because its checking for latest chat messages?

If so i think the chat can be improved a lot if you add something like...

Code

<script language="javascript">
setInterval("chat()",3000)
</script>


The chat() function you see inside there basically needs editing and changing to the funciton name of your ajax function if you have one. What setinterval does is run a certain function every x amount of seconds. the above script runs the function on my site every 3 seconds.

Im not sure if your plannning something like this for v4 or if you already have but anyway good luck.
Posted on Thursday 12th June 2008 at 08:21 PM
DanielXP
avatars/1.png's Avatar
Senior Member
1. The thing what reloads all the time is nothing to do with the shoutbox.
2. It reloads every 15 seconds not 10.
3. The shoutbox updates every 30 seconds through ajax already. (big number to save bandwidth and so the server wont crash)