Auto Refresh Div periodically without refreshing the whole page

Поделиться
HTML-код
  • Опубликовано: 10 июл 2019
  • Download the source code here : jinujawad.com/auto-refresh-di...

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

  • @seupyrassic3144
    @seupyrassic3144 3 года назад +3

    max volume can't hear him but damn near blew my ear drums out with that stupid DING

  • @nomad4253
    @nomad4253 3 года назад

    Working Fine (July 2021). Thank you so much. Subbed

  • @fadhfirasi6356
    @fadhfirasi6356 4 года назад

    Thx, I needed this, and it works

  • @FourGamingILFGIL4Fever
    @FourGamingILFGIL4Fever 3 года назад

    THANK YOU SO MUCH!!!

  • @adelashour3253
    @adelashour3253 2 года назад +2

    can i just make all that without the load.php page ?

  • @Alikhan-nq6rl
    @Alikhan-nq6rl 3 года назад

    Very Nice keep it up Good Work

  • @cjcarpon8013
    @cjcarpon8013 Год назад

    Thank you! this just a big help for me pal😉

    • @dr-mnizam
      @dr-mnizam Год назад

      Hope this video might also help you: ruclips.net/video/CACsMxHalaI/видео.html

  • @amonkasokomba7508
    @amonkasokomba7508 2 года назад +1

    When I move the "Time" into the Load.php page, I can not see it on the index.php page, please help...?

  • @devopsguy686
    @devopsguy686 3 года назад

    Great job brother

  • @egzonmurati208
    @egzonmurati208 3 года назад +1

    I need this but I dont want another page in want all this in same page ?

  • @overite
    @overite Год назад

    how can i reload a specific html table on with out using two page just all should be done on a page ?

  • @ranaghosh9954
    @ranaghosh9954 3 года назад

    Please help me ....i want to refresh my return value from shell_exec function...how i can do this

  • @yannickboniface2422
    @yannickboniface2422 3 года назад +3

    Thx a lot Jinu Jawad. I was loocking for a method to auto-refresh data in a web page without refreshing the whole page and yours is easy and works so fine!!! I use it to refresh a span. But may be you can help me further : coming from 3 websockets I have 3 text strings to refresh each in a different span. I made 3 php files with php directive: data_date.php, data_smoke.php and data_temperature.php. Each script works fine when it is the only one in the web page but doesn't work together when I try to make 3 scripts in the web page.I think it is a syntaxic problem, I tried but didn't manage. Can you please help ? Thank you again.
    Regards.
    Yannick from French snowy Alps.

    • @yannickboniface2422
      @yannickboniface2422 3 года назад

      Hey Buddy, forgot it, it was easy I just went to learn.jquery.com/using-jquery-core/document-ready/, the answer to my question was there. Thank you very much you upgraded my web page and improved my code. Bye

  • @vikassathud4053
    @vikassathud4053 3 года назад

    Can we make personal talk via mail or something? I have some doubt on refreshing or webserver example phpmyadmin

  • @albumcinta327
    @albumcinta327 3 года назад

    bro ihave a prob, i test in other php file its not working, whats wrong do u know?

  • @gefranviana4742
    @gefranviana4742 2 года назад

    *Obrigado amigo me ajudou muito.*

  • @djjavvystark5470
    @djjavvystark5470 3 года назад

    Thank you

  • @gauravpradeep123
    @gauravpradeep123 2 года назад +1

    how to do it in wordpress?

  • @limmengan1
    @limmengan1 Год назад

    how can i load the whole page not just div?

  • @creativity4you83
    @creativity4you83 3 года назад +1

    Check your mic dude. Your Pc notifications are louder then your voice.

  • @inevitablerafati5202
    @inevitablerafati5202 4 года назад

    Thnx champ

  • @devwithbrian1534
    @devwithbrian1534 Год назад

    Thanks a lot

  • @globalsystemsinc9301
    @globalsystemsinc9301 3 года назад +1

    copied and pasted and uploaded and this does not work

  • @RobertonFaustino
    @RobertonFaustino 9 месяцев назад

    work in wordpress?

  • @guidingtechbd
    @guidingtechbd 4 года назад

    will it work on html file. And can I refresh web page without php

    • @caliapster8720
      @caliapster8720 4 года назад

      Guiding Tech BD i think you are able to do it with javascript as well so yea with a .html file
      search digital clock js w3school and you should find it!

  • @B6Infinity
    @B6Infinity 3 года назад +1

    4:00

  • @nitiros
    @nitiros 3 года назад

    Dast lagi awaj me bol rha hai . Thoda tej bola kr bhai .
    Voluume full karne pr bhi nhi sunai deta.

  • @TECHINSPEC
    @TECHINSPEC 3 года назад

    Voice is very slow

  • @aarontyler6599
    @aarontyler6599 2 года назад

    Can't hear

  • @thechoosen4240
    @thechoosen4240 2 года назад +1

    Good job bro JESUS IS COMING SOON;PREPARE

  • @smoua4588
    @smoua4588 Год назад

    Make it more complicated

  • @photoinshot1355
    @photoinshot1355 Год назад

    Thanks good tutorial, I was also interested to see how to do this without jquery. For those also interested here is the plain javscript without using jquery. Please not I call my load file a different name(loadTime) just so I will know what it does in the future:
    document.addEventListener('DOMContentLoaded', function() {
    var divRefresh = document.getElementById('div_refresh');

    function loadTime() {
    divRefresh.innerHTML = ''; // Clear the contents of the div
    var xhr = new XMLHttpRequest();
    xhr.open('GET', 'loadTime.php', true);
    xhr.onreadystatechange = function() {
    if (xhr.readyState === 4 && xhr.status === 200) {
    divRefresh.innerHTML = xhr.responseText; // Update the div with the response
    }
    };
    xhr.send();
    }

    loadTime(); // Initial call

    setInterval(loadTime, 3000); // Call every 3 seconds
    });