Ajax Chat Control example
With Gaia it is easy to build an Ajax based Chat Client in Gaia for ASP.NET 2.0! ;)
Basically the only JavaScript we've got here is the script that ensures the scrolling of the DIV to
the bottom when the space of the chat rolls over amount of space we've got in the div that displays the chat...
And in case you don't believe this is a "real" chat client try to open up another browser and point it to the same URL
as this window is pointing to and try to chat with yourself...!!
All this with less than 100 lines of ASPX and 150 lines of C#!!
Fyi, you must type in a username (anything will do, like for instance sdf or qwe...) and you must also type in some "chat content" to be able
to submit a new chat!
And also, please don't use this one instead of Messenger or Google talk since it's only ment as an EXAMPLE implementation of a chat client
in Gaia and not for real business critical information exchange even though I know it's tempting... ;)
The basic implementation is over a Gaia.Timer control that polls the server every 2 seconds and only updates the Gaia.PlacHolder within
the div element below if there has been a change in the chat content between polls...!!