target of send_message func managed by g_is_spawned var
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 19 Jan 2008 14:58:32 +0000 (14:58 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 19 Jan 2008 14:58:32 +0000 (14:58 +0000)
web/commons.js

index 2eb5e01..8320845 100644 (file)
@@ -174,8 +174,10 @@ function createXMLHttpRequest() {
 function send_mesg(mesg)
 {
     var xhr_wr = createXMLHttpRequest();
+
+    
     // xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+encodeURIComponent(mesg), true);
-    xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+mesg, true);
+    xhr_wr.open('GET', 'index_wr.php?sess='+sess+(g_is_spawn == 1 ? '&table_idx='+g_table_idx : '')+'&mesg='+mesg, true);
     xhr_wr.onreadystatechange = function() { return; };
     xhr_wr.send(null);