CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: JavaScript

Partial Page Refresh

192 Views
Copy Code Show/Hide Line Numbers
   1:  /*
   2:  Refresh page content every 10 seconds.
   3:  */
   4:   
   5:  setInterval(function() 
   6:  {
   7:     $("#refresh").load(location.href+" #refresh>*","");
   8:  }, 10000); // seconds to wait, miliseconds
   9:   
  10:  /*
  11:  Source: http://web.enavu.com/tutorials/top-10-jquery-snippets-including-jquery-1-4/
  12:  */
by Norm Bell
  June 02, 2010 @ 2:21am
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate