[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

How do you do this?


Thread replies: 13
Thread images: 2

File: webquest.gif (417KB, 1161x572px) Image search: [Google] [Yandex] [Bing]
webquest.gif
417KB, 1161x572px
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)
>>
File: gifsmall1.webm (343KB, 1161x572px) Image search: [Google] [Yandex] [Bing]
gifsmall1.webm
343KB, 1161x572px
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.
Thread replies: 13
Thread images: 2
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK