Closed Coalado closed 3 years ago
Just testet "edit_reference.html" with Chrome, Firefox and Edge. No problem on any system.
Please give some more input, until then I'll close the issue.
It's not a JS issue. The JS block is correct. Anyway, it sometimes works, sometimes not. I had the same issue with Chome and Edge.
Try to reload http://watermeter/edit_reference.html several times. Open the Web Debugger to bypass the browser Cache.
It seems that the webserver has a bug and does not finish connections.
The browser is loading "forever", and does not init the embedded JS.
I get the same issues on other pages es well. Here, edit_config_param.html does not finish. As you can see on the screenshot, the server starts the response with "0\r\n\r\n" -> The header parser in chrome fails. Is there are a reason why you send the data "chunked"?
I send the data "chunked" because depending on the size of the html or js-file, it is loaded from the SD-card in peaces and therefore is send chunked.
That makes sense.
The js block is created AFTER the link that calls it. Browser: Latest Chrome