projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update TODO and version.
[brisk.git]
/
web
/
http_streaming.js
diff --git
a/web/http_streaming.js
b/web/http_streaming.js
index
8029812
..
58d8a1a
100644
(file)
--- a/
web/http_streaming.js
+++ b/
web/http_streaming.js
@@
-1,7
+1,7
@@
/*
* brisk - http_streaming.js
*
/*
* brisk - http_streaming.js
*
- * Copyright (C) 2006-201
1
Matteo Nastasi
+ * Copyright (C) 2006-201
2
Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
@@
-26,8
+26,8
@@
* NOT MANDATORY
* - type of streaming into the constructor
* - all iframe related streaming add
* NOT MANDATORY
* - type of streaming into the constructor
* - all iframe related streaming add
- * - substitute fixed "eval" with a generic command hunks processor
*
*
+ * DONE - substitute fixed "eval" with a generic command hunks processor
* DONE - myfrom (now from) into the constructor
* DONE - target page into the constructor
* DONE - gst management
* DONE - myfrom (now from) into the constructor
* DONE - target page into the constructor
* DONE - gst management
@@
-37,7
+37,7
@@
*
*/
*
*/
-function http_streaming(gst, from, cookiename, sandbox, targetpage)
+function http_streaming(gst, from, cookiename, sandbox, targetpage
, cmdproc
)
{
this.xhr = createXMLHttpRequest();
// this.xhr.setRequestHeader("Content-type", "text/html; charset=utf-8");
{
this.xhr = createXMLHttpRequest();
// this.xhr.setRequestHeader("Content-type", "text/html; charset=utf-8");
@@
-47,6
+47,7
@@
function http_streaming(gst, from, cookiename, sandbox, targetpage)
this.cookiename = cookiename;
this.sandbox = sandbox;
this.targetpage = targetpage;
this.cookiename = cookiename;
this.sandbox = sandbox;
this.targetpage = targetpage;
+ this.cmdproc = cmdproc;
}
http_streaming.prototype = {
}
http_streaming.prototype = {
@@
-55,6
+56,7
@@
http_streaming.prototype = {
cookiename: null,
sandbox: null,
targetpage: null,
cookiename: null,
sandbox: null,
targetpage: null,
+ cmdproc: null,
/* cookiepath is automatically customized in installation phase */
cookiepath: "/brisk/",
/* cookiepath is automatically customized in installation phase */
cookiepath: "/brisk/",
@@
-201,7
+203,7
@@
http_streaming.prototype = {
// $("xhrdeltalog").innerHTML = "EVALL: "+singlecomm.replace("<", "<", "g"); +"<br>";
this.hbit("+");
// $("xhrdeltalog").innerHTML = "EVALL: "+singlecomm.replace("<", "<", "g"); +"<br>";
this.hbit("+");
-
eval
(singlecomm);
+
this.cmdproc
(singlecomm);
again = 1;
}
else {
again = 1;
}
else {