javascript - Hide browser loading icon on iframe reload -
i trying make iframe reload every 1 second when shows spinning loader on browser tab. possible make iframe reload without letting browser notice reload. jquery or ajax job?
function do_reload(){ document.title = "title"; document.getelementbyid('iframe_box').src='status.php' document.title = "title"; } window.setinterval("do_reload()", 1000);
yes jquery , ajax can it.
using jquery load method, example shown below
suppose have div id = "window" use following jquery
function loadwindow() { $("#window").load("status.php"); }
then call every 1 second.. window.setinterval(loadwindow,1000);
Comments
Post a Comment