
linetrace
Dependencies: RemoteIR TextLCD
Revision 51:2d35f207d217, committed 2020-09-01
- Comitter:
- mori2020
- Date:
- Tue Sep 01 08:00:17 2020 +0000
- Parent:
- 50:8843bee40df5
- Commit message:
- kaijo 1~2s
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Sep 01 05:38:46 2020 +0000 +++ b/main.cpp Tue Sep 01 08:00:17 2020 +0000 @@ -1005,9 +1005,9 @@ strcat(webbuff, "for(var m=0;m<11;m++){button_9[m].disabled=true;}"); strcat(webbuff, "var xhr = new XMLHttpRequest();"); strcat(webbuff, "xhr.open(\"GET\", url);"); + strcat strcat(webbuff, "xhr.onreadystatechange = function(){"); - //strcat(webbuff, "if(this.readyState == 4 && this.status == 200){"); - strcat(webbuff, "if(this.readyState == 4){"); + strcat(webbuff, "if(this.readyState == 4 || this.status == 200){"); strcat(webbuff, "for(var m=0;m<11;m++){button_9[m].disabled=false;}"); strcat(webbuff, "}"); strcat(webbuff, "};");