Online Books:
java.net on MarkMail:
Search |
||
Comet TicTacToePosted by driscoll on May 7, 2008 at 6:45 PM PDT
Here's the Comet TicTacToe that I went over in my BOF on Comet on Wednesday night. It's pretty simple (though not as simple as my first example, or even the somewhat improved version) - just 200 lines of Java code (including the game logic), 50 lines of JavaScript (embedded in an HTML page), 50 lines of HTML, and a 75 line CSS file. Simple stuff, but if you're looking to write your own Comet app, this might help get you started.
You can find the full Netbeans project here. Essentially, the program logic is contained in only two files: ttt1.html, and CometServlet.java. Check 'em out. After my initial example two posts ago, these should be pretty self explanatory. If you have any questions, by all means ask in the comments below. »
Related Topics >>
Web Applications Comments
Comments are listed in date ascending order (oldest first)
Submitted by igf1 on Fri, 2008-08-15 07:45.
Hi Jim!
I was wondering if you have come across GWT + Cometd as far as a "native" implementation goes? perhaps a blog entry / tutorial :)
|
||
|
|