Sorry ive just just upload a test page to my site as i was doing all off line....HansR wrote: ↑Tue 07 Jun 2022 2:16 pmAll true but I don't think it is the cause of failing.mcrossley wrote: ↑Tue 07 Jun 2022 2:11 pmYes it would be best to do that...
Code: Select all
var uv = rawdata[45]; var uvword; if (uv=="0"){ uvword="None";} else if (uv=="3"){ uvword="<span ...
Maybe @dazza could elaborate on what exactly fails? Does it show anything in the UVone element or does it show erroneous something?
As you compare strings is that truly the content of the rawdata or is it e.g. "0 " with as result the if statements all fail and you get an empty string in the html element. If uncertain add a console.log statement after each if-clause to see something.
Or go to stackoverflow.
so if you can take a look you can see now ? and for the output nope nothing and the rawdata is the realtime.txt line 44 but it 45 as it count from 1
https://www.davisworthing.co.uk/test.php