From: Philipp Klaus Date: Fri, 13 Dec 2013 16:22:41 +0000 (+0100) Subject: Providing debug output in case of HTTP error codes X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9aac567e2b6c4eb31c4154a0f72a589b1778e652;p=daqtools.git Providing debug output in case of HTTP error codes --- diff --git a/web/htdocs/scripts/scriptsnew.js b/web/htdocs/scripts/scriptsnew.js index 3cfbbc5..814f76b 100644 --- a/web/htdocs/scripts/scriptsnew.js +++ b/web/htdocs/scripts/scriptsnew.js @@ -49,6 +49,12 @@ function getdataprint(command,dId,async,time,callback) { //cb(xmlhttp.responseText); //document.getElementById(destId).innerHTML = xmlhttp.responseText; } + else if (xmlhttp.readyState == 4) { + document.getElementById("returntext").innerHTML = xmlhttp.responseText; + if(cb) { + cb(time); + } + } } xmlhttp.open("GET",command,async); @@ -109,4 +115,4 @@ b = Math.floor(b); return "rgb("+(r%256)+","+(g%256)+","+(b%256)+")"; -} \ No newline at end of file +}