Absolutely brilliant, much appreciated, and it seems you win the Wizard's Hat.
A slightly battered one though because, while it does what it promised, both in passing the live time to the Pico and the '?sync=n' formatting ... I really need to send a reply and those 'fetch' are doing something funky. I'm seeing -That first is a little problematic and I need to return a new page after the second.
So would you know the trick for making it just issue the second GET and expecting, accepting, and showing a new page reply ?
No need to worry about Pico compatibility because the page runs in the browser so the JavaScript is all client side. An alternative could be to insert a header for the GET, "X-something: 1709221560637". I should be able to handle that.
At least I now know the mechanism for hooking in what I was expecting to be an 'OnClick' which I couldn't figure out. Now it's just making it update the form as I'd like form before it submits it.
Update : Have a spanking new Wizard's Hat.
You pointed me in the right direction and, though I haven't figured out the trick to getting '/?sync=n', am still on '/=n?', I can handle that and look further into it later. Main issue solved and very much appreciated. I'll post my version once tidied up.
A slightly battered one though because, while it does what it promised, both in passing the live time to the Pico and the '?sync=n' formatting ... I really need to send a reply and those 'fetch' are doing something funky. I'm seeing -
Code:
GET /1709221560637 HTTP/1.1GET /?sync=1709221560637 HTTP/1.1
No need to worry about Pico compatibility because the page runs in the browser so the JavaScript is all client side. An alternative could be to insert a header for the GET, "X-something: 1709221560637". I should be able to handle that.
At least I now know the mechanism for hooking in what I was expecting to be an 'OnClick' which I couldn't figure out. Now it's just making it update the form as I'd like form before it submits it.
Update : Have a spanking new Wizard's Hat.
You pointed me in the right direction and, though I haven't figured out the trick to getting '/?sync=n', am still on '/=n?', I can handle that and look further into it later. Main issue solved and very much appreciated. I'll post my version once tidied up.
Statistics: Posted by hippy — Thu Feb 29, 2024 4:09 pm