I'm using this code now, works great except that it makes three requests to the webserver:
var refreshspeed=1000
function moreSnow() {
$("#uptimedynamic").load("index.html #uptimedynamic");
$("#cpuloaddynamic").load("index.html #cpuloaddynamic");
$("#meminfodynamic").load("index.html #meminfodynamic");
setTimeout("moreSnow()", refreshspeed);
}
Can someone tell me how to make it do the same thing, but with only one read of index.html? It needs to stay in the same repeating loop setup :)
This should do it
By retrieving only the contents of each element you alsoo avoid dupicating ID's in page and potential style issues