X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxhr.js;h=ca1a2a0adb48ddbb0147b5a69a756f48e40fa04a;hb=b1ab2024d5e2e81099c704a6b78ef9d5476c5f62;hp=fba80022a8453e75d8c8a65c832ab5694b51d00f;hpb=212529a990fbf05284b61a771bf99df0c12b3c54;p=brisk.git diff --git a/web/xhr.js b/web/xhr.js index fba8002..ca1a2a0 100644 --- a/web/xhr.js +++ b/web/xhr.js @@ -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
"; if (the_end != true) { setTimeout(xhr_rd_poll, tout, sess); + $("heartbit").innerHTML += "-"; if ($("heartbit").innerHTML.length == 20) $("heartbit").innerHTML = "-"; + } return; };