Originally posted by R Sriram:
@ David, thanks first up. Now, even If I am doing it in AJAX, I need to send back some info to the server so that the client @ the other end can pick it up. So I just want to know how do I get it going.
The AJAX request from a player sends info to the server letting it know about the player's move.
Now it is the server's turn to inform the second player of information. This can be done a few ways:
1) There is a regular page refresh either with a meta refresh tag, or a javascript timeout.
2) Regularly scheduled AJAX calls poll the the server for information
3) You use a second framework, called Pushlets, to allow the Server to Push content to the Player. See
The Pushlets Home Page With a combination of AJAX and Pushlets you can get a pretty nice event driven web game.