hi; lovely vid, Pls how do I poll from a python output ? like the python script runs and displays messages on response from a button on a board push. how can I poll that to a webpage. Any pointers will be nice
This method is great, but in gadgets like tablets, or phones, the refreshing icon appears every 2 seconds. Is there a way to do it without noticing the user that something in the inside is updating?
I loved these Ajax tutorials :D I would love it if you'd do something without JQuery.. I'm trying to learn JS and I don't want to use libraries in the process..
Hey Alex, great videos! you really teached me php from scratch, could you please make tutorial about Long Polling with Ajax. I've tried few times but the thing is when the code is still running inside the php file than I cannot make another request to that file until it finished. anyways the Long Polling seems very confusing to me..would like to know if you can teach or make a video about it. Thanks for your work man really appreciate it.
This is just what I wanted for my current project.
Awesome!!! Thank you very much Alex..
Great Tutorial, very useful
Good tutorial as always, but just 1 thing I want to point out:
setInterval(function()
{
poll();
}, 2000);
Can be shorter:
setInterval(poll, 2000);
hi; lovely vid, Pls how do I poll from a python output ? like the python script runs and displays messages on response from a button on a board push. how can I poll that to a webpage. Any pointers will be nice
Can you maybe do a tutorial for long-polling?
did he?
@@TheDesvendador did he?
@@Guess_who08 unfortunately, i don't think so :/
This method is great, but in gadgets like tablets, or phones, the refreshing icon appears every 2 seconds. Is there a way to do it without noticing the user that something in the inside is updating?
I loved these Ajax tutorials :D I would love it if you'd do something without JQuery.. I'm trying to learn JS and I don't want to use libraries in the process..
Hey Alex,
great videos! you really teached me php from scratch, could you please make tutorial about Long Polling with Ajax. I've tried few times but the thing is when the code is still running inside the php file than I cannot make another request to that file until it finished. anyways the Long Polling seems very confusing to me..would like to know if you can teach or make a video about it. Thanks for your work man really appreciate it.
I want long polling too! its little bit complicate to me
We need this with promise and then otherwise it will move to next line without output print.
how to poll from mysql, not from json?
+Mariusz Pąk why dont you just update the json file as soon as your database gets updated?
you cant query database from DOM. You need to create endpoint on the server side like some php file that queries your db and respons to your DOM