How to make jquery post request to php script every 30 seconds?
<p>Could you guys show me how i can make jquery post request to a php script every 30 seconds ? The Php script is writing some data to mysql.</p>

<pre><code>$.ajax(
{

    type: 'POST',
    url: './postIt.php',

     data: {
     title: 'test',

     },
     success: function (good)
     {
     //handle success

     //alert(good)
     },
     failure: function (bad)
     {
     //handle any errors

     //alert(bad)

     }


});
</code></pre>
