Loading src/camvc_camcomm.js +10 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,8 @@ Requests.prototype.parseXML=function(xml) { function getIfDefinedFCNV(obj) {return (typeof(obj)!="undefined")?((obj.firstChild)?obj.firstChild.nodeValue:""):"";} function getIfDefined0FCNV(obj) {return (obj.length && (typeof(obj[0])!="undefined"))?((obj[0].firstChild)?obj[0].firstChild.nodeValue:""):"";} var veryFirstImage = true; Requests.prototype.getImage=function() { // if (!document.imageEnabled) { requestsNextState(true); return; } // **** back to the main loop: SKIPPED if (getBuTton('idEnableImageRefresh_CB').s==0) { requestsNextState(true); return; } /// **** back to the main loop: SKIPPED Loading @@ -573,6 +575,14 @@ Requests.prototype.getImage=function() { /// document.requests.img++; debugComm(8192); if (gPRoot["comp_run"].getValue() == 'run'){ this.shadowImage.src= this.imgsrv+this.imgUrl+"&_time="+t.getTime(); // for TIFF format there will be no onload event, need to fire it manually if (gPRoot["color"].getValue()==15 && veryFirstImage){ var e = document.createEvent('HTMLEvents'); e.initEvent("load", false, true); this.shadowImage.dispatchEvent(e); //$(this.shadowImage).trigger("onload"); } veryFirstImage = false; // document.title+="bimg"; } else if (this.ExifCircbufImgNeeded) { var newUrl=this.imgsrv+this.circbuf_fp+this.imgUrl; Loading src/camvc_interface.js +6 −2 Original line number Diff line number Diff line Loading @@ -576,6 +576,9 @@ camInterface.prototype.gotHistogram=function() { var jp4obj; camInterface.prototype.gotShadow=function() { console.log("Onload!"); // alert ("gotShadow: typeof(this)="+typeof(this)+"\ntypeof(gRequests)="+typeof(gRequests)); if ((gPRoot["comp_run"].getValue() != 'run') && (gRequests.shadowImage.src.indexOf(gRequests.circbuf_fp)>=0)) { gRequests.ExifCircbufImgNeeded=false; Loading Loading @@ -660,6 +663,7 @@ camInterface.prototype.gotShadow=function() { var newsrc = ($("#idCameraImage_div").find("#display")[0]).toDataURL(); frAmeselSetImage ("idMagnifier_frAmesel", newsrc); frAmeselSetImage ("idWindow_frAmesel", newsrc); $(gRequests.shadowImage).trigger("load"); }); Loading Loading
src/camvc_camcomm.js +10 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,8 @@ Requests.prototype.parseXML=function(xml) { function getIfDefinedFCNV(obj) {return (typeof(obj)!="undefined")?((obj.firstChild)?obj.firstChild.nodeValue:""):"";} function getIfDefined0FCNV(obj) {return (obj.length && (typeof(obj[0])!="undefined"))?((obj[0].firstChild)?obj[0].firstChild.nodeValue:""):"";} var veryFirstImage = true; Requests.prototype.getImage=function() { // if (!document.imageEnabled) { requestsNextState(true); return; } // **** back to the main loop: SKIPPED if (getBuTton('idEnableImageRefresh_CB').s==0) { requestsNextState(true); return; } /// **** back to the main loop: SKIPPED Loading @@ -573,6 +575,14 @@ Requests.prototype.getImage=function() { /// document.requests.img++; debugComm(8192); if (gPRoot["comp_run"].getValue() == 'run'){ this.shadowImage.src= this.imgsrv+this.imgUrl+"&_time="+t.getTime(); // for TIFF format there will be no onload event, need to fire it manually if (gPRoot["color"].getValue()==15 && veryFirstImage){ var e = document.createEvent('HTMLEvents'); e.initEvent("load", false, true); this.shadowImage.dispatchEvent(e); //$(this.shadowImage).trigger("onload"); } veryFirstImage = false; // document.title+="bimg"; } else if (this.ExifCircbufImgNeeded) { var newUrl=this.imgsrv+this.circbuf_fp+this.imgUrl; Loading
src/camvc_interface.js +6 −2 Original line number Diff line number Diff line Loading @@ -576,6 +576,9 @@ camInterface.prototype.gotHistogram=function() { var jp4obj; camInterface.prototype.gotShadow=function() { console.log("Onload!"); // alert ("gotShadow: typeof(this)="+typeof(this)+"\ntypeof(gRequests)="+typeof(gRequests)); if ((gPRoot["comp_run"].getValue() != 'run') && (gRequests.shadowImage.src.indexOf(gRequests.circbuf_fp)>=0)) { gRequests.ExifCircbufImgNeeded=false; Loading Loading @@ -660,6 +663,7 @@ camInterface.prototype.gotShadow=function() { var newsrc = ($("#idCameraImage_div").find("#display")[0]).toDataURL(); frAmeselSetImage ("idMagnifier_frAmesel", newsrc); frAmeselSetImage ("idWindow_frAmesel", newsrc); $(gRequests.shadowImage).trigger("load"); }); Loading