X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt%2Fxynt-http-streaming.js;h=5a0c6158ce5fcf76ac7682b2b326056a2e501272;hb=5ba9cf2d51aeb6ca0d9687c908ccb10496e843ca;hp=d671d8f52e8c2f88a252c8db15502231cb73dadc;hpb=f6e71b0a0d5a7248aa91e60006524b7b33200ed2;p=xynt.git diff --git a/web/xynt/xynt-http-streaming.js b/web/xynt/xynt-http-streaming.js index d671d8f..5a0c615 100644 --- a/web/xynt/xynt-http-streaming.js +++ b/web/xynt/xynt-http-streaming.js @@ -27,14 +27,15 @@ globst.prototype = { } } -function http_streaming(win, cons) +function http_streaming(win, gst, sess, cons) { this.console = cons; this.win = win; + this.sess = sess; this.doc = win.document; this.keepalive_old = -1; this.keepalive_new = -1; - this.gst = new globst(); + this.gst = gst; this.cmdproc = function(com){eval(com);} } @@ -42,6 +43,7 @@ http_streaming.prototype = { console: null, win: null, doc: null, + sess: null, ifra: null, page: null, watchdog_hdl: null, @@ -72,6 +74,9 @@ http_streaming.prototype = { this.doc.body.appendChild(this.ifra); if (page != null) this.page = page; + this.page = url_append_args(this.page, "sess", this.sess, "st", this.gst.st); + this.log(this.page); + // this.log(this.ifra); this.ifra.contentWindow.location.href = this.page; this.watchdog_ct = 0; @@ -197,6 +202,8 @@ http_streaming.prototype = { }, abort: function () { + // this.log("PATH: "+this.ifra.contentWindow.location.protocol + "://" + this.ifra.contentWindow.location.host + "/" + this.ifra.contentWindow.location.pathname); + this.gst.abort(); if (this.watchdog_hdl != null) { clearTimeout(this.watchdog_hdl);