It's one of those times when AJAX is a sensible solution. Use the
setInterval() function to poll the server every now and then. One thing
to remember is to set up Apache so that it'd exclude the polling script
from the server log. Otherwise it'd grow very rapidly.