..


Sponsored Links

How do I update the contents of the page every few seconds with Ajax and jQuery?

you have to do is to use the setInterval () method in combination with one of the methods provided by the Ajax jQuery library (eg load ()). Here's an example:






 / / A simple function that uses the load () method of jQuery







 function update () {



  



 $ ('# Container'). Load ('source-dati.html');







 }









 / / Active the setInterval () method to update the content every 5 seconds







 Window.setInterval ("update ()", 5000);



In the same category ...
E-Learning
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
Javascript (Course) Javascript (Course)
Complete guide to client-side scripting. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links