refresh div after X seconds using jquery and ajax
<p>i found <a href="http://www.9lessons.info/2009/07/auto-load-refresh-every-10-seconds-with.html" rel="nofollow">this code</a> for refresh my div using jquery. this worked but i have any problem. this plugin always refreshed my div and print result. this bad idea. i need to print <code>div</code> and <code>result</code> when <code>result != 0</code>. in my i.e jquery print <code>0</code> in result div. any way for this solutions ? thanks</p>

<p>jquery code : </p>

<pre><code>&lt;script type="text/javascript"&gt;
var auto_refresh = setInterval( 
function ()
{
$('#load_tweets').load('record_count.php').fadeIn("slow");
}, 10000);    
&lt;body&gt;
&lt;div id="load_tweets"&gt; &lt;/div&gt;
</code></pre>

<p>record_count.php ( very simple ) result = 0 </p>

<pre><code>0
</code></pre>
