Javascript examples for jQuery:Text
Fetch data from text file and update web page every minute
<!doctype html> <html lang="en"> <head> <script src="jquery.min.js"></script> <script> setInterval(function(){get_contents();}, 10000*60); function get_contents() {//ww w. j av a 2s. co m $.get('file_read.php.php?tail', function(data) { $('#contents').append(data); }); } </script> </head> <body> <div id="contents"> Loading... </div> </body> </html>