Lift Web Framework

The total chat app, including the ask/answer component for soliciting a name comments, etc. is listed on this page. There is no special code to support AJAX/Comet (all the wrapping is done automatically by Lift).

When the Chat comet widget is added to the page, it needs to solict the user for a "chat name". It asks the "AskName" comet widget for the name. Until the AskName comet widget provides a name, all rendering messages are forwarded to AskName. Here's the code for the "AskName":

This example demonstrates the power of Scala's Actors and Lift. With very few lines of code, we've got a complete AJAX/Comet app that has Seaside style Ask/Answer for building modal dialogs.


Lift is Copyright 2007-2013 WorldWide Conferencing, LLC. Distributed under an Apache 2.0 License.
Lift version 2.5-RC4 built on Sat Apr 06 03:28:20 UTC 2013.
Stats: Total Memory: 280,887,296 Free Memory: 269,714,344 Open Sessions: 23
Updated At: Wed Jul 26 18:30:24 UTC 2017 Started At: Wed Jul 26 00:16:49 UTC 2017