projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
webstart_hilite added, var for multiple topbanner big banner added
[brisk.git]
/
web
/
commons.js
diff --git
a/web/commons.js
b/web/commons.js
index
bbeccf1
..
3207c11
100644
(file)
--- a/
web/commons.js
+++ b/
web/commons.js
@@
-222,12
+222,17
@@
function createXMLHttpRequest() {
function send_mesg(mesg)
{
var xhr_wr = createXMLHttpRequest();
function send_mesg(mesg)
{
var xhr_wr = createXMLHttpRequest();
-
+ var is_conn = (sess == "not_connected" ? false : true);
- xhr_wr.open('GET', 'index_wr.php?
sess='+sess+'&mesg='+mesg, true
);
+ xhr_wr.open('GET', 'index_wr.php?
'+(is_conn ? 'sess='+sess+'&' : '')+'mesg='+mesg, (is_conn ? true : false)
);
xhr_wr.onreadystatechange = function() { return; };
xhr_wr.send(null);
xhr_wr.onreadystatechange = function() { return; };
xhr_wr.send(null);
+ if (!is_conn) {
+ if (xhr_wr.responseText != null) {
+ eval(xhr_wr.responseText);
+ }
+ }
}
/* Stat: CHAT and TABLE */
}
/* Stat: CHAT and TABLE */