jquery - Reload doesn't reload -


function updateimage(){  $("#fileimg").attr("src","image.jpg");  $('#fileimg').fadein('slow'); }  function updatefiles(){  $.get('files.php', function(data) {    $('#files').html(data);    $('#files').fadein('slow');  }); } updatefiles();  settimeout('updateimage()', 5000); settimeout('updatefiles()', 5000); 

well have code update image , text, doesn't update... data doesn't change , fadein doesn't work.

can y'all me? thanks.

instead of this:

settimeout('updateimage()', 5000); settimeout('updatefiles()', 5000); 

you should this:

settimeout(updateimage, 5000); settimeout(updatefiles, 5000); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -