• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Texas Hold'em Poker Game

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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,

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
grab Struts 2 NOT Struts 1. have a look at the struts2-showcase example.
it illustrates the integration of a good ajax package with the background servlet
Posts: 6
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax can definitely help.
you can time the events by calling the java either after the "onComplete" event or you can use something like
jsFunction http://livedemo.exadel.com/richfaces-demo/richfaces/jsFunction.jsf?c=jsFunction&tab=usage

your project seems fun I would thank you if you can post a link to it when it airs.

Hang a left on main. Then read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic