Implementing a live voting system
Posted
by
Will Eddins
on Stack Overflow
See other posts from Stack Overflow
or by Will Eddins
Published on 2011-01-07T02:47:49Z
Indexed on
2011/01/07
2:54 UTC
Read the original article
Hit count: 203
I'm looking at implementing a live voting system on my website. The website provides a live stream, and I'd like to be able to prompt viewers to select an answer during a vote initiated by the caster. I can understand how to store the data in a mySQL database, and how to process the answers. However:
How would I initially start the vote on the client-side and display it? Should a script be running every few seconds on the page, checking another page to see if a question is available for the user?
Are there any existing examples of a real-time polling system such as what I'm looking at implementing?
© Stack Overflow or respective owner