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
Post a Comment