Performed a bunch of markup fixes suggested by validator.w3.org
[citadel.git] / webcit / static / instant_messenger.html
index 1db2b4a2e3a8ddd8dc4f69cc3844e7a9868a9b7a..dc2e3cd5c0347d8905008b8d87f0b299f847c6a4 100644 (file)
@@ -3,6 +3,7 @@
        <title>Citadel Instant Messenger</title>
        <script type="text/javascript" src="prototype.js"></script>
        <script type="text/javascript" src="wclib.js"></script>
+       <script type="text/javascript" src="authmethods.js"></script>
 </head>
 <body onLoad='FetchNewMsgs();'>
 
 <div id="main" style="position:fixed;width:100%;height:85%;top:15%;left:0%;overflow:auto;background:#ffffff"></div>
 
 <script type="text/javascript">
+/*
+ * Copyright 2000 - 2010 The Citadel Team
+ * Licensed under the GPL V3
+ *
+ * Chat window for Person 2 Person Chat
+ *
+ */
 
 var gexp_divs = new Array();
 var num_gexp_divs = 0;
@@ -40,17 +48,18 @@ function SendSomething(which_div, sendform, recipient) {
                                + '</font>'
                                + ':</b> '
                                + thetext
-                               + '<br />\n';
+                               + '<br>\n';
 
        // Scroll to the bottom of the tab
        $('main').scrollTop = 999999;
 
        // Send the text to the server
        parms = 'r=' + Math.random()
-               + '&g_cmd=SEXP ' + recipient + '|' + thetext;
-       new Ajax.Request('../ajax_servcmd',
+               + '&recp=' + recipient
+               + '&msg=' + encodeURIComponent(thetext);
+       new Ajax.Request('../ajax_send_instant_message',
                {
-                       method: 'get',
+                       method: 'post',
                        parameters: parms
                }
        );
@@ -114,8 +123,8 @@ function ShowNewMsg(gexp_xmlresponse) {
                          $('main').innerHTML
                        + '<div id=\"tab_' + which_div + '\" style=\"display:none;cursor:pointer\">'
                        + '<div id=\"' + which_div + '\">'
-                       + '<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />'
-                       + '<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />'
+                       + '<br><br><br><br><br><br><br><br><br><br>'
+                       + '<br><br><br><br><br><br><br><br><br><br>'
                        + '</div>'
                        + '<div align=\"center\" id=\"response_'
                        + which_div + '\" style=\"background:#ddddee\">'
@@ -123,7 +132,7 @@ function ShowNewMsg(gexp_xmlresponse) {
                        + 'onSubmit=\"return SendSomething(\'' + which_div + '\', \'sendform_'
                        + which_div + '\', \'' + sender + '\');\">'
                        + '<img src=\"citadelchat_16x.gif\">&nbsp;'
-                       + '<input type=\"text\" size=\"72\" maxlength=\"72\" name=\"sendthis\">'
+                       + '<input type=\"text\" size=\"72\" maxlength=\"600\" name=\"sendthis\">'
                        + '</form>'
                        + '<br></div>'
                        + '</div>\n';
@@ -148,7 +157,7 @@ function ShowNewMsg(gexp_xmlresponse) {
                                + '</font>'
                                + ':</b> '
                                + the_message
-                               + '<br />\n';
+                               + '<br>\n';
 
        // Scroll to the bottom of the tab
        $('main').scrollTop = 999999;