1 <div id="chatrecv_history" class="chatrecv_history">
3 <div id="chatrecv" class="chatrecv">
5 <div id="chatsend" class="chatsend">
6 <form method="POST" onsubmit="return chatsendfunc()" action="chat_send" id="chatsendid" name="chatsendform">
7 <input type="hidden" name="nonce" value="<?NONCE>">
8 <img src="static/citadelchat_16x.gif">
9 <input type="text" size="80" maxlength="1024" id="send_this_id" name="send_this">
12 <script type="text/javascript">
14 function chatsendfunc() {
15 $('chatsendid').request({
16 onComplete: function(){ $('send_this_id').value = '' }
21 new Ajax.PeriodicalUpdater('chatrecv', 'chat_recv', {
22 method: 'get', frequency: 2,
23 onSuccess: function(){
24 $('chatrecv_history').innerHTML =
25 $('chatrecv_history').innerHTML + $('chatrecv').innerHTML;
26 $('chatrecv').innerHTML = '';
27 $('chatrecv_history').scrollTop = 9999999;