setInterval(function() { $.ajax({ type:"post", url:"phpScript.php", postfieldkey:"value", success:function(data) { // do something with response data here } }); }, 5000);