I added a .gif to illustrate my question because there were some misunderstanding in m previous, now archived thread.
>>51560200
By the way if i click on the right window (with the plain {"gpio_0":"1","gpio_2":"1"} text to show the source it is just shows the same {"gpio_0":"1","gpio_2":"1"} text)
So how would i do this? (btw the text in the right window updates real time)
in glorious .webm
i included cursor movements which ou can follow to see what happens
Is this actual black magic?
Seems pretty simple to implement with AJAX... Just use whatever framework you want and properly set the content type for the "subpage"
>>51569705
>uses json for no reason.
>2 chars would be much better, think of all the bandwidth saved.
In all seriousness this is pretty easy I'm sure you could do it in like < 30 mins with ajax.
>>51572162
OP here, i have pretty much zero knowledge of web development besides simple html tags. I want to learn this stuff though. How do i into AJAX?
>>51572466
If adding a jquery dependency is OK, http://api.jquery.com/jquery.ajax/ is pretty easy mode desu
WebSockets or AJAX polling.
If they are both on the same domain, localstorage + updates on storage.
Didn't someone on the other thread give you a working solution?
Use server sent events. WebSockets is probably overkill.
https://en.wikipedia.org/wiki/Server-sent_events
>>51573060
And once again, IE makes an API impossible to use.
>>51573382
kek
>>51573382
there's a polyfill for that.