]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Providing debug output in case of HTTP error codes
authorPhilipp Klaus <pklaus@ikf.uni-frankfurt.de>
Fri, 13 Dec 2013 16:22:41 +0000 (17:22 +0100)
committerPhilipp Klaus <pklaus@ikf.uni-frankfurt.de>
Fri, 13 Dec 2013 16:22:41 +0000 (17:22 +0100)
web/htdocs/scripts/scriptsnew.js

index 3cfbbc541c4a0a975746ba02d4635bd1b11b876a..814f76be8d3c791b8a27232e72ff2c87e04a43d7 100644 (file)
@@ -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
+}