I have implemented a Poker online game using JSP+JavaServlet+Java+MySql.
My client asked to add image fading in effect when loading the cards, so the cards are shown on the screen one by one.
My problem is the image fading-in effect is controlled using Javascript, the form is controlled uisng JSP+JavaServlet.
The Javascript and the JavaServlet can not communicate straightway. So, the form's buttons become available before the cards finish fading-in. The idea one should be after cards fade in, then the player is allowed to press a button.
Does any body have such experience? I would like to konw which the best way to do such interactive online game is.
I heard about Ajax. Do you think it is a good idea to rewrite the web application using JavaScript + Ajax + JavaServlet?
Any inputs are welcome.
Thanks in advance,
Jing