This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var interval = 500; //número de milisegudos en que vuelve a hacer la llamada de la función. | |
var refresh = function() { | |
$.ajax({ | |
url: "path/to/server/page.php", | |
cache: false, | |
success: function(html) { | |
$('#server-name').html(html); | |
setTimeout(function() { | |
refresh(); |