function getdata(command,dId,async) {
+ //async==true : do what you can when you can do it :D
+ //async==false : do the task after you finished the previous task!
+ // super duper debug line!
// alert("caller is " + arguments.callee.caller.toString());
var xmlhttp = null;
var configFile_ = encodeURIComponent(configFile);
var destId_ = encodeURIComponent(destId);
- getdata("testgui.pl?action=print_quickEditArea&configFile="+configFile_+"&destId="+destId_,destId,"false");
+ getdata("testgui.pl?action=print_quickEditArea&configFile="+configFile_+"&destId="+destId_,destId,false);
}
for( var sensorId in previewAreaIdHash){
// alert(laufid+" => "+previewAreaIdHash[laufid]);
var sensorId_ = encodeURIComponent(sensorId);
- getdata("testgui.pl?action=showPlot&sensorId="+sensorId_,previewAreaIdHash[sensorId],"false");
+ getdata("testgui.pl?action=showPlot&sensorId="+sensorId_,previewAreaIdHash[sensorId],true);
}
+}
+
+
+
+function toggleVis(elementId) {
+if(document.getElementById(elementId)){
+if( document.getElementById(elementId).style.visibility == "visible") {
+ document.getElementById(elementId).style.visibility = "collapse";
+} else {
+ document.getElementById(elementId).style.visibility = "visible" ;
+}
+}
}
\ No newline at end of file
print "</script>";
# end of that story
-print "<div id=theConsole>[the \"console\"]</div>";
+print "<input type='button' value='show/hide debug output' onclick='toggleVis(\"theConsole\")'>";
+print "<div id='theConsole'>[the \"console\"]</div>";
print end_html;