refresh - update a page automatically with jquery -


i have been testing 'jquery' script automatically updates page every n seconds ,it works fine in browsers except internet explorer doesn't load page 'posts.php' , doesn't show errors code reference

      $(document).ready(function() {      $("#responsecontainer").load("posts.php");    var refreshid = setinterval(function() {       $("#responsecontainer").load('posts.php?randval='+ math.random());    }, 2000);    $.ajaxsetup({ cache: false }); }); 

many sites have found have suggested ie may caching code

  $("#responsecontainer").load("posts.php" + new date().gettime()); 

try ..it may or maynot solve issue let know caching problem

see this more info.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo