// Send the text to the server
parms = 'r=' + Math.random()
- + '&recp=' + recipient
+ + '&recp=' + encodeURIComponent(recipient)
+ '&msg=' + encodeURIComponent(thetext);
new Ajax.Request('../ajax_send_instant_message',
{
+ '<br><form method=\"post\" action=\"null\" name=\"sendform_' + which_div + '\" '
+ 'onSubmit=\"return SendSomething(\'' + which_div + '\', \'sendform_'
+ which_div + '\', \'' + sender + '\');\">'
- + '<img src=\"citadelchat_16x.gif\"> '
+ + '<img src=\"webcit_icons/essen/16x16/chat.png\"> '
+ '<input type=\"text\" size=\"72\" maxlength=\"600\" name=\"sendthis\">'
+ '</form>'
+ '<br></div>'
// This is called periodically to check for new incoming messages
function FetchNewMsgs() {
- parms = 'g_cmd=GEXP&r=' + Math.random();
+ parms = encodeURI('g_cmd=GEXP&r=' + Math.random());
new Ajax.Request('../ajax_servcmd',
{
method: 'get',
}
// Perform some initialization.
-parms = 'g_cmd=GREG _SELF_&r=' + Math.random();
+parms = encodeURI('g_cmd=GREG _SELF_&r=' + Math.random());
new Ajax.Request('../ajax_servcmd',
{
method: 'get',