diff --git a/apps/webserver-nano/httpd-cgi.c b/apps/webserver-nano/httpd-cgi.c index 7d73adcbc..de0b8c675 100644 --- a/apps/webserver-nano/httpd-cgi.c +++ b/apps/webserver-nano/httpd-cgi.c @@ -1057,7 +1057,6 @@ PT_THREAD(ajax_call(struct httpd_state *s, char *ptr)) static int iter; static char buf[128]; static uint8_t numprinted; - uint16_t dt; PSOCK_BEGIN(&s->sout); #if WEBSERVER_CONF_PASSQUERY diff --git a/apps/webserver-nano/httpd-fs/makefsdata.ignore/ajax.js b/apps/webserver-nano/httpd-fs/makefsdata.ignore/ajax.js index cdd7cebc7..858a2a677 100644 --- a/apps/webserver-nano/httpd-fs/makefsdata.ignore/ajax.js +++ b/apps/webserver-nano/httpd-fs/makefsdata.ignore/ajax.js @@ -3,7 +3,7 @@ function e(el){return document.getElementById(el);} function ls(){try{r=new XMLHttpRequest();}catch(e){alert("Browswer does not support Ajax");return false;}r.open("GET","/ajaxdata.shtml",true); x=0;r.onreadystatechange=function(){e('date').innerHTML=(new Date()).toTimeString();if(r.readyState>0){j=r.responseText.substr(x);x+=j.length;eval(j);}};r.send(null);} -function tb(x){var t=e('ss');if(x||t.value=="RUN"){t.value="STOP";ls();}else{t.value="RUN";r.abort();}} +function tb(x){var t=e('ss');try{r.abort();}if(x||t.value=="RUN"){t.value="STOP";ls();}else t.value="RUN";} function s(el,n,max,text){e(el).innerHTML=''+''+''+''+'
'+text+'  
';} function wt(m){document.title=m;e('v').innerHTML=m;} function dc(n,d){return n.toFixed(d);}