corretta posizione dell'Esco
[brisk.git] / web / xhr.js
index fba8002..ca1a2a0 100644 (file)
@@ -53,7 +53,11 @@ function xhr_rd_start(sess,stat,subst,step)
 {
     if (the_end)
        return;
-    createCookie("sess",sess,1,xhr_rd_cookiepath);
+    createCookie("sess", sess, 24*365, xhr_rd_cookiepath);
+
+    // NOTE: *ctx = "" to prevent konqueror stream commands duplication.
+    xhr_rd_oldctx = "";
+    xhr_rd_newctx = "";
 
     /* NOTE document.uniqueID exists only under IE  */
     // alert("di qui3");
@@ -81,14 +85,12 @@ function xhr_rd_poll(sess)
        xhr_rd.abort(); 
     }
     */
-
     var zug = "XHR_RD_POLL sess = "+sess+" stat = "+stat+" subst = "+subst+" step = "+gst.st+" step_loc = "+gst.st_loc+" step_loc_new = "+gst.st_loc_new+" STOP: "+xhr_rd_stopped;
 
     if (zug != $("sandbox").innerHTML)
        $("sandbox").innerHTML = zug;
-    
 
-    /* heartbeat log */
+    /* heartbit log */
     $("heartbit").innerHTML += "_";
     if ($("heartbit").innerHTML.length == 20)
        $("heartbit").innerHTML = "_";
@@ -129,9 +131,11 @@ function xhr_rd_poll(sess)
                if (the_end != true) {
                    watchdog = 0;
                    setTimeout(xhr_rd_poll, tout, sess);
+                   
                    $("heartbit").innerHTML += "-";
                    if ($("heartbit").innerHTML.length == 20)
                        $("heartbit").innerHTML = "-";
+                   
                }
                return;
            }
@@ -218,9 +222,11 @@ function xhr_rd_poll(sess)
     // $("sandbox").innerHTML += "return 3<br>";
     if (the_end != true) {
        setTimeout(xhr_rd_poll, tout, sess);
+       
        $("heartbit").innerHTML += "-";
        if ($("heartbit").innerHTML.length == 20)
            $("heartbit").innerHTML = "-";
+       
     }
     return;
 };