/* This is the uncompressed version of the script in httpd-fs/sensordata.shtml */ var start; i = new Image(50,60) i.src = "spin.gif" function load() { var img = document.getElementById("spin"); img.innerHTML = ' '; loadData(); } function loadData() { var r; try { r = new XMLHttpRequest(); } catch(e) { try { r = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { r = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { alert("Your browser does not support AJAX!"); return false; } } } r.onreadystatechange = function() { if(r.readyState == 1) { var img = document.getElementById("spin"); img.innerHTML = ''; } if(r.readyState == 4) { var img = document.getElementById("spin"); img.innerHTML = 'took ' + ((new Date()).getTime() - start.getTime()) / 1000 + ' seconds'; eval(r.responseText); } } start = new Date(); r.open("GET", "/sensordata.shtml", true); r.send(null); } function e(el) { d = document; if(d.getElementById) { return d.getElementById(el); } else if (d.all) { return d.all[el]; } } function s(el,n,max,text) { e(el).innerHTML = '
' + text + ' | ' + '' + ' | ' + ' |