title: jquery: auto reload/update page element?
body: <p>I want to upgrade a specific page element every minute.</p>
  <p>I know how to use the jquery load() function to reload a element on my page like this.</p>
  <pre><code>    $('.mostliked').load(&quot;http://mypage.com&quot; + &quot; .mostliked &gt;*&quot;, function() {
          //callback
      });
  </code></pre>
  <p>That works fine because .mostliked is an element in my sidebar.</p>
  <p>However now I need to update a element where I can not grab it's content from some other page like in my sidebar example.</p>
  <p>var reload = 60000;
  setInterval(function() {</p>
  <pre><code>    $('ul.rating').each(function() {
          //simply reload this element every minute
      })
      //update sidebar widget
      $('.mostliked').load(&quot;http://mypage.com&quot; + &quot; .mostliked &gt;*&quot;, function() {
          //callback
      });
  
  }, reload);
  </code></pre>
  <p>How can I solve that problem?</p>