Some Dinosaur
Some Dinosaur

Reputation: 164

Hide browser loading icon on iframe reload

I am trying to make an iframe reload every 1 second but when it does it shows the spinning loader on the browser tab. Is it possible to make the iframe reload without letting the browser notice the reload. Could Jquery or Ajax do the job?

function do_reload(){
    document.title = "Title";
    document.getElementById('iframe_box').src='status.php'
    document.title = "Title";
}

window.setInterval("do_reload()", 1000);

JSFiddle

Upvotes: 0

Views: 743

Answers (1)

Unni Babu
Unni Babu

Reputation: 1814

Yes jquery and ajax can do it.
using jquery load method, example shown below
suppose you have div with id = "window" then use following jquery


    function loadWindow()
    {
      $("#window").load("status.php");
    }

then call this every 1 second.. window.setInterval(loadWindow,1000);

Upvotes: 1

Related Questions