<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="wclib.js"></script>
</head>
-<body>
+<body onLoad='FetchNewMsgs();'>
<div id="thetop" style="position:fixed;width:100%;height:15%;top:0%;left:0%">
<div id="spacer1" style="background:#aaaaaa"><br></div>
<div id="main" style="position:fixed;width:100%;height:85%;top:15%;left:0%;overflow:auto;background:#ffffff"></div>
<script type="text/javascript">
+/*
+ * $Id: instant_messanger.html 7193 2009-03-07 17:24:58Z dothebart $
+ * Copyright 2000 - 2009 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;
// Send the text to the server
parms = 'r=' + Math.random()
- + '&g_cmd=SEXP ' + recipient + '|' + thetext;
+ + '&g_cmd=SEXP ' + recipient + '|-\n' + escape(thetext);
new Ajax.Request('../ajax_servcmd',
{
- method: 'get',
+ method: 'post',
parameters: parms
}
);
$('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 />'
+ '</div>'
- + '<div id=\"response_' + which_div + '\">'
+ + '<div align=\"center\" id=\"response_'
+ + which_div + '\" style=\"background:#ddddee\">'
+ '<br><form method=\"post\" action=\"null\" name=\"sendform_' + which_div + '\" '
+ 'onSubmit=\"return SendSomething(\'' + which_div + '\', \'sendform_'
+ which_div + '\', \'' + sender + '\');\">'
- + '<input type=\"text\" size=\"80\" maxlength=\"80\" name=\"sendthis\">'
+ + '<img src=\"citadelchat_16x.gif\"> '
+ + '<input type=\"text\" size=\"72\" maxlength=\"600\" name=\"sendthis\">'
+ '</form>'
- + '</div>'
+ + '<br></div>'
+ '</div>\n';
$('tab_bar').innerHTML =
$('tab_bar').innerHTML
// Cause FetchNewMsgs() to be called periodically.
-new PeriodicalExecuter(FetchNewMsgs, 3);
+new PeriodicalExecuter(FetchNewMsgs, 10);
</script>