This page illustrates how data can be contributed from the client to the Liberator. It implements a simple chat system that allows you to send messages in real time to other people who are looking at the same page.
Choose a name for yourself and click 'Log In'. Do the same with a different name in another browser window (in IE, it must be a new browser window, a new tab isn't enough, see the Master/Slave frame demo for more information), or get someone else to go to the same url and try chatting with them.
Messages appear in the text area when they arrive. If there have been recent messages, when you first log in, you should see the most recent message displayed. You can send messages by typing into the box below it and pressing return.
For this example a "chat room" can be specified in reality the chatroom is just the name of the created CONTRIB object to which all the users messages are passed to - if you leave the room empty the default value of "CHAT" will be used and the default user name of "Bob" will be used for the user if left blank.
Please click here for more information on how this page has been configured.
A chat room is represented by an record object on Liberator, eg /Examples/Contribution/CHAT.
The user is subscribed to that record object so it will receive other user's messages. When the user wants
to send a message a contribution is made to the same record object which is echoed back by the JavaDemoSource
DataSource and all subscribed users receive the message and it is appended to the HTML Element set aside as
the chat area.