I found a way to do threading in JavaScript. This opens a lot of possibilities for AJAX implementation to the site. Refreshing the shoutbox every 3 seconds, checking if the online users have changed every 30 seconds and see if you got any new messages each minute... Without the need of refreshing the page!
The fact that JavaScript can't thread made it very hard to implement such things with different timers. If you want to know how I made threading possible just check the source code for "threading.js".
Discussion (8 Comments)