projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
preload now must manage trees and not flat img dir
[brisk.git]
/
web
/
xhr.js
diff --git
a/web/xhr.js
b/web/xhr.js
index
044e99d
..
c33c2e8
100644
(file)
--- a/
web/xhr.js
+++ b/
web/xhr.js
@@
-33,6
+33,14
@@
var the_end = false;
var ct = 0;
var watchdog = 0;
var ct = 0;
var watchdog = 0;
+function hbit(symb)
+{
+ if ($("heartbit").innerHTML.length >= 40)
+ $("heartbit").innerHTML = symb;
+ else
+ $("heartbit").innerHTML += symb;
+}
+
function xhr_rd_cb(xhr_rd)
{
var ret;
function xhr_rd_cb(xhr_rd)
{
var ret;
@@
-53,10
+61,15
@@
function xhr_rd_start(sess,stat,subst,step)
{
if (the_end)
return;
{
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 */
/* NOTE document.uniqueID exists only under IE */
- // alert("di qui3");
+ // 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, true);
// try {
xhr_rd.onreadystatechange = function() { xhr_rd_cb(xhr_rd); }
xhr_rd.open('GET', 'index_rd.php?sess='+sess+"&stat="+stat+"&subst="+subst+"&step="+step+"&onlyone="+(document.uniqueID ? "TRUE" : "FALSE")+"&myfrom="+myfrom, true);
// try {
xhr_rd.onreadystatechange = function() { xhr_rd_cb(xhr_rd); }
@@
-87,9
+100,7
@@
function xhr_rd_poll(sess)
$("sandbox").innerHTML = zug;
/* heartbit log */
$("sandbox").innerHTML = zug;
/* heartbit log */
- $("heartbit").innerHTML += "_";
- if ($("heartbit").innerHTML.length == 20)
- $("heartbit").innerHTML = "_";
+ hbit("_");
do {
again = 0;
do {
again = 0;
@@
-104,6
+115,8
@@
function xhr_rd_poll(sess)
singlecomm = gst.comms.shift();
// alert("EXE"+gugu);
// $("xhrdeltalog").innerHTML = "EVALL: "+singlecomm.replace("<", "<", "g"); +"<br>";
singlecomm = gst.comms.shift();
// alert("EXE"+gugu);
// $("xhrdeltalog").innerHTML = "EVALL: "+singlecomm.replace("<", "<", "g"); +"<br>";
+ hbit("+");
+
eval(singlecomm);
again = 1;
}
eval(singlecomm);
again = 1;
}
@@
-128,9
+141,7
@@
function xhr_rd_poll(sess)
watchdog = 0;
setTimeout(xhr_rd_poll, tout, sess);
watchdog = 0;
setTimeout(xhr_rd_poll, tout, sess);
- $("heartbit").innerHTML += "-";
- if ($("heartbit").innerHTML.length == 20)
- $("heartbit").innerHTML = "-";
+ // hbit(".");
}
return;
}
return;
@@
-155,6
+166,8
@@
function xhr_rd_poll(sess)
var delta = 0;
var match_lines = /^_*$/;
var delta = 0;
var match_lines = /^_*$/;
+ hbit("/\\");
+
// check for the same command group
if (xhr_rd_old_n != xhr_rd_cur_n) {
xhr_rd_old_n = xhr_rd_cur_n;
// check for the same command group
if (xhr_rd_old_n != xhr_rd_cur_n) {
xhr_rd_old_n = xhr_rd_cur_n;
@@
-219,9
+232,7
@@
function xhr_rd_poll(sess)
if (the_end != true) {
setTimeout(xhr_rd_poll, tout, sess);
if (the_end != true) {
setTimeout(xhr_rd_poll, tout, sess);
- $("heartbit").innerHTML += "-";
- if ($("heartbit").innerHTML.length == 20)
- $("heartbit").innerHTML = "-";
+ // hbit(".");
}
return;
}
return;