* update room chat to the new protocol. This needs a couple more tweaks but I'm...
[citadel.git] / webcit / static / t / roomchat.html
1 <div id="chatrecv">
2 This is the receiving side of the chat window, fee fie foe foo
3 </div>
4 <div id="chatsend">
5 <form method="POST" onsubmit="return chatsendfunc()" action="chat_send" id="chatsendid" name="chatsendform">
6 <input type="hidden" name="nonce" value="<?NONCE>">
7 <input type="text" size="80" maxlength="1024" id="send_this_id" name="send_this">
8 <br />
9 <input type="submit" name="send_button" value="<?_("Send")>">
10 <input type="submit" name="help_button" value="<?_("Help")>">
11 <input type="submit" name="list_button" value="<?_("List users")>">
12 <input type="submit" name="exit_button" value="<?_("Exit")>">
13 </div>
14
15 <script type="text/javascript">
16
17 function chatsendfunc() {
18         $('chatsendid').request({
19                 onComplete: function(){ $('send_this_id').value = '' }
20         })
21         return false;
22 }
23
24 new Ajax.PeriodicalUpdater('chatrecv', 'chat_recv', {
25         method: 'get', frequency: 2, insertion: 'bottom'
26 });
27
28 </script>