Hi:
In the phplive program I said, there's nothing on client-side... It's all server side. It's a pity I can't see the source code.
The idea of looping is not as you said... I meant this.
Window1: it has a loop (while-do) of when HTTP_SESSION_VARS["changed"] is for example = 1
Window2: the client writes something, it press enter, the page is reload, the PHP at the top of the script rewrites the conversation text file and it puts HTTP_SESSION_VARS["changed"] to 1
Then the Window1 will refresh inmediately...
Of course, this would extends to put that changed with a timestamp knowing the last time of somebody wrote, ect... but not the problem right now 🙂
The question is if that loop would consume or overload too much... something similar to
do { nothing } while $HTTP_SESSION_VARS["changed"]!=$last_time_somebody_wrote
Thank you
P.D. Then any idea of how can they do it ? (http://www.phplivechat.com/demos/2.4/demonstration.htm)