Best approach to creating self-updating content - i.e. chat rooms, shoutboxes and so on

Posted by Anonymous - on Pro Webmasters See other posts from Pro Webmasters or by Anonymous -
Published on 2011-11-22T18:04:12Z Indexed on 2011/11/22 18:16 UTC
Read the original article Hit count: 184

Filed under:

The only way I can think of to have a shoutbox or similar element update itself when somebody posts a new 'shout' and it needs to be loaded in everyone else's browsers is to have Javascript check every x seconds for any updates... This could get a bit resource intensive though I expect if many people were to leave their browsers open on the page, idling.

Is this the only way or am I missing something?

I've prefer to stick to only html, css, javascript (AJAX) and php.

© Pro Webmasters or respective owner

Related posts about AJAX