From: Matteo Nastasi (mop) Date: Tue, 4 Dec 2012 06:19:07 +0000 (+0100) Subject: type of stream selection added X-Git-Tag: v4.3.0~1 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=14136ff3d45c9d1212d6b5e0fd789b57ed73b893;p=brisk.git type of stream selection added --- diff --git a/web/Obj/transports.phh b/web/Obj/transports.phh index 72ad49b..08ad7a0 100644 --- a/web/Obj/transports.phh +++ b/web/Obj/transports.phh @@ -135,4 +135,8 @@ push(\"%s\");\n// -->\n", $step, escpush($cont) ); } } } + +class Transport_htmlfile extends Transport_iframe { +} + ?> \ No newline at end of file diff --git a/web/xynt-streaming.js b/web/xynt-streaming.js index 117c9f7..a8cad92 100644 --- a/web/xynt-streaming.js +++ b/web/xynt-streaming.js @@ -390,12 +390,15 @@ xynt_streaming.prototype = { // transport instantiation if (this.transp_type == "xhr") { + this.page = url_append_args(this.page, "transp", "xhr"); this.transp = new transport_xhr(this.doc, this, this.page); } else if (this.transp_type == "iframe") { + this.page = url_append_args(this.page, "transp", "iframe"); this.transp = new transport_iframe(this.doc, this, this.page); } else if (this.transp_type == "htmlfile") { + this.page = url_append_args(this.page, "transp", "htmlfile"); this.transp = new transport_htmlfile(this.doc, this, this.page); } else diff --git a/web/xynt_test01.php b/web/xynt_test01.php index 32b4cb9..38ddda0 100644 --- a/web/xynt_test01.php +++ b/web/xynt_test01.php @@ -1,5 +1,13 @@ chunk($i, sprintf("\$('container').innerHTML = '%d';", $i)); print($chunk); mop_flush(); @@ -65,30 +76,36 @@ if ($isstream == "true") { - - + - +
+"); +for ($test = 1 ; $test <= 2 ; $test++) { + printf(""); + foreach ($transs as $trans) { + printf("Test %s %02d", $trans, $test, $trans, $test); + } + printf("\n"); +} +printf(""); +printf("
[%s]
Test: %d
", $f_trans, $f_test); +?> +
BEGIN