X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxhr.js;h=279663dac5ae40ef50f10a59969f128eeadb20a1;hb=1c864a7f5b393bddf3ef4ce94886703d2ac3b21c;hp=fba80022a8453e75d8c8a65c832ab5694b51d00f;hpb=212529a990fbf05284b61a771bf99df0c12b3c54;p=brisk.git diff --git a/web/xhr.js b/web/xhr.js index fba8002..279663d 100644 --- a/web/xhr.js +++ b/web/xhr.js @@ -53,7 +53,7 @@ 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 document.uniqueID exists only under IE */ // alert("di qui3"); @@ -81,14 +81,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 +127,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 +218,11 @@ function xhr_rd_poll(sess) // $("sandbox").innerHTML += "return 3
"; if (the_end != true) { setTimeout(xhr_rd_poll, tout, sess); + $("heartbit").innerHTML += "-"; if ($("heartbit").innerHTML.length == 20) $("heartbit").innerHTML = "-"; + } return; };