Jquery auto run pagination
<p>I create pagination with jquery , this script works fine , but i want the script works and call differents pages in automatic mode :</p>

<pre><code>&lt;script&gt;

$(document).ready(function(){
$("#article_load_favourites").load("indexer_favourites_news.php");
});
&lt;/script&gt;

&lt;script&gt;
function pagination(id)
{
$("#article_load_favourites").load("indexer_favourites_news.php?pg_d="+id);
}
</code></pre>

<p>/// Call the script function</p>

<pre><code>setInterval(function() {

pagination(i+1);

}, 4000);



&lt;/script&gt;
</code></pre>

<p>The idea it´s load the script and start from cero and before of 4 seconds go page number one and before of other 4 seconds go to the other page and continue to the end , in this point i try do this but no work me</p>

<p>I need run this script of pagination and go from page 1 to the last page and repit other time </p>

<p>Thank´s !!!</p>
