student test for professor
Dependencies: EthernetInterface mbed-rpc mbed-rtos mbed
Fork of HTTP-Server by
Revision 6:d03e189ebbfe, committed 2013-07-17
- Comitter:
- feb11
- Date:
- Wed Jul 17 15:18:41 2013 +0000
- Parent:
- 5:8ab27ca793cd
- Child:
- 7:838d7ea07e18
- Commit message:
- Fixed bug in javascript code for interactive html formatter
Changed in this revision
Formatter.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Formatter.cpp Wed Jul 17 15:01:05 2013 +0000 +++ b/Formatter.cpp Wed Jul 17 15:18:41 2013 +0000 @@ -28,10 +28,8 @@ var name = document.getElementById(\"name\").value;\ var arg = document.getElementById(\"arg\").value;\ var url;\ -if(arg === \"\")\ -url = \"http://\" + ip + type + \"new?name=\" + name;\ -else\ -url = \"http://\" + ip + type + \"new?arg=\" + arg + \"&name=\" + name;\ +if(arg === \"\") url = \"http://\" + ip + type + \"new?name=\" + name;\ +else url = \"http://\" + ip + type + \"new?arg=\" + arg + \"&name=\" + name;\ location.href= url;\ }\ function submitCallFuncForm()\