javascript notification

I’m building an application for a college project. It allows users to log into a room and vote on something. In order for people to vote the moderator has to start a poll first. I would like to notify all users logged into a room when a poll has been started, a poll is started via a controller action createPoll. I assume javascript is the best way to go here, any ideas fellas. I’m new php, and even newer to javascript so any input is greatly appreciated.

As you probably already know, web servers can’t push notifications to clients - HTTP doesn’t make it possible. The client has to check if a new poll started and this check has to be repeated periodically in an infinite loop.

Starting points:



well… there is also Ajax Push Engine ( which is a Comet implementation and could help here.

can you pls tell me what database tables you used ????