g_is_spawn var used to choose the GET target
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 19 Jan 2008 14:27:20 +0000 (14:27 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sat, 19 Jan 2008 14:27:20 +0000 (14:27 +0000)
web/xhr.js

index 3cbfe67..52a19ff 100644 (file)
@@ -68,8 +68,9 @@ function xhr_rd_start(sess,stat,subst,step)
     xhr_rd_newctx = "";
 
     /* NOTE document.uniqueID exists only under IE  */
-    // alert("di qui3");
-    xhr_rd.open('GET', 'index_rd.php?sess='+sess+"&stat="+stat+"&subst="+subst+"&step="+step+"&onlyone="+(document.uniqueID ? "TRUE" : "FALSE")+"&myfrom="+myfrom, true);
+    // if (g_is_spawn == 1)
+    // alert("di qui3: "+(g_is_spawn == 1 ? "&table_idx="+g_table_idx : ""));
+    xhr_rd.open('GET', 'index_rd.php?sess='+sess+"&stat="+stat+"&subst="+subst+"&step="+step+"&onlyone="+(document.uniqueID ? "TRUE" : "FALSE")+"&myfrom="+myfrom+(g_is_spawn == 1 ? "&table_idx="+g_table_idx : ""), true);
     //    try { 
     xhr_rd.onreadystatechange = function() { xhr_rd_cb(xhr_rd); }
     xhr_rd.send(null);