AJAX Polling: Infinite

Поделиться
HTML-код
  • Опубликовано: 13 мар 2014
  • Want more? Explore the library at www.codecourse.com/lessons
    Official site
    www.codecourse.com
    Twitter
    / teamcodecourse

Комментарии • 19

  • @Sabre00
    @Sabre00 10 лет назад

    This is just what I wanted for my current project.

  • @theachluophobia2014
    @theachluophobia2014 10 лет назад

    Awesome!!! Thank you very much Alex..

  • @BrandonAndre
    @BrandonAndre 10 лет назад

    Great Tutorial, very useful

  • @DaBananaboat
    @DaBananaboat 10 лет назад

    Good tutorial as always, but just 1 thing I want to point out:
    setInterval(function()
    {
    poll();
    }, 2000);
    Can be shorter:
    setInterval(poll, 2000);

  • @elijahedih8538
    @elijahedih8538 9 лет назад +1

    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

  • @kristiandaugaard7495
    @kristiandaugaard7495 10 лет назад +10

    Can you maybe do a tutorial for long-polling?

  • @MiguelPeniche
    @MiguelPeniche 10 лет назад +1

    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?

  • @maxverb
    @maxverb 10 лет назад

    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..

  • @edenr1988
    @edenr1988 8 лет назад +2

    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.

    • @elvestrindade7047
      @elvestrindade7047 7 лет назад +1

      I want long polling too! its little bit complicate to me

  • @sachinchakravarthys1807
    @sachinchakravarthys1807 6 лет назад

    We need this with promise and then otherwise it will move to next line without output print.

  • @mariuszpak1338
    @mariuszpak1338 9 лет назад

    how to poll from mysql, not from json?

    • @oscarcastanedamunoz
      @oscarcastanedamunoz 8 лет назад

      +Mariusz Pąk why dont you just update the json file as soon as your database gets updated?

    • @libnerrr
      @libnerrr 7 лет назад

      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