X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt-http-streaming.js;h=fa35007efbe1ffef8a5dbf5ac785ece32e6ed2c9;hb=525cfe7d868bfaefdde9f769f52a50bcb6f1e9e9;hp=f4731ce640267446605976796800fd042bbef8c6;hpb=34ccc0593731592021bee6ab1661f8eb5ab5b1a4;p=brisk.git diff --git a/web/xynt-http-streaming.js b/web/xynt-http-streaming.js index f4731ce..fa35007 100644 --- a/web/xynt-http-streaming.js +++ b/web/xynt-http-streaming.js @@ -101,8 +101,14 @@ http_streaming.prototype = { if ( (this.watchdog_ct % this.watchdog_checktm) == 0 || !this.watchable) { if (!this.watchable) { do { - if (typeof(this.ifra.contentWindow.http_streaming) == 'undefined') - break; + try{ + if (typeof(this.ifra.contentWindow.http_streaming) == 'undefined') + break; + } + catch(b) { + break; + } + /* on IE7 the the window frame scope is cleaned after the href is set, so we wait for a well know variable value before assign this object value to it (OO is a passion) @@ -136,9 +142,14 @@ http_streaming.prototype = { // alert("do--while begin ["+again+"]"); // CHECK: maybe again here isn't needed again = 0; - if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined' || - typeof(this.ifra.contentWindow.ctx_old_len) == 'undefined') - break; + try { + if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined' || + typeof(this.ifra.contentWindow.ctx_old_len) == 'undefined') + break; + } + catch(b) { + break; + } ctx_new_len = this.ifra.contentWindow.ctx_new.length; if (ctx_new_len <= this.ifra.contentWindow.ctx_old_len) {