Not sure if thats the best way to write a client side listener.
I would suggest using AJAX, in that way you make all your work on the server side, and an Ajax component keeps polling the data from the server.
medopal
2010-03-09 15:49:51