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.
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
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!
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 });
max volume can't hear him but damn near blew my ear drums out with that stupid DING
Working Fine (July 2021). Thank you so much. Subbed
Thx, I needed this, and it works
THANK YOU SO MUCH!!!
can i just make all that without the load.php page ?
Very Nice keep it up Good Work
Thank you! this just a big help for me pal😉
Hope this video might also help you: ruclips.net/video/CACsMxHalaI/видео.html
When I move the "Time" into the Load.php page, I can not see it on the index.php page, please help...?
Great job brother
I need this but I dont want another page in want all this in same page ?
how can i reload a specific html table on with out using two page just all should be done on a page ?
Please help me ....i want to refresh my return value from shell_exec function...how i can do this
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.
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
Can we make personal talk via mail or something? I have some doubt on refreshing or webserver example phpmyadmin
bro ihave a prob, i test in other php file its not working, whats wrong do u know?
*Obrigado amigo me ajudou muito.*
Thank you
how to do it in wordpress?
how can i load the whole page not just div?
Check your mic dude. Your Pc notifications are louder then your voice.
Thnx champ
Thanks a lot
copied and pasted and uploaded and this does not work
work in wordpress?
will it work on html file. And can I refresh web page without php
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!
4:00
Dast lagi awaj me bol rha hai . Thoda tej bola kr bhai .
Voluume full karne pr bhi nhi sunai deta.
Voice is very slow
Can't hear
Good job bro JESUS IS COMING SOON;PREPARE
Yeah he will arrival by 2024
He already arrived
Make it more complicated
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
});