I have a Surface 2 tablet that I still use sometimes. It is a nice size and generally works fine for viewing websites. I noticed that it did not work at all for IotaWatt. Figuring out the issue using the version of IE included with Windows 8.1 was not going to be easy, but I discovered that IE on Windows 10 had the same issue. So, I turned on the developer tools and now know why it is failing.
IE does not support the usage of default assignment in the function header, so this:
function validateInput(id, required=false, msg=undefined){
Needs to be something like this:
function validateInput(id, required, msg){
if (required === undefined) {
required = false;
}
That got me past not being able to click the buttons and have them do anything. But, even after changing this usage the page would display, but not update. Of course, it would update just fine when I had the debugger on. Searching the internet I saw many people suggested not using XMLHTTPRequest and instead using jQuery’s AJAX . I changed that, but it still didn’t work. It turns out the default on IE is to cache the results so it would not update. Luckily, there is a setting to turn that off.
Let me know if you are interested in getting a PR, but you should probably accept the one from the graphing, since this one is to a different file for a very different purpose. I am not sure exactly how you want to manage PRs. When it is only you developing something, it is not something you need to worry about. But, if you want people to contribute, having some process defined helps a lot.
Anyway, I can now see graphs and status on IE, so it is working fine for me. It still works on Edge and Chrome on Android, so it probably makes sense to use it for everyone.