You can use a technique called "comet", which works with AJAX. In this technique the clients send requests to the server, and wait for an answer which will be send by the server only when there is...
Thanks for your answer. Your code (apart from commenting the loop() call that was in duplicate), at first sight seamed to solve my problem! However, in fact the problem is persistent....