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 built on Sat Jun 01 06:22:10 CEST 2013.
Stats: Total Memory: 804,782,080 Free Memory: 776,067,488 Open Sessions: 26
Updated At: Sun Feb 25 10:50:58 CET 2018 Started At: Fri Feb 02 17:59:26 CET 2018