jQuery(document).ready(function(){ jQuery.post("http://www.digimed.ufc.br/cienciando/wp-content/plugins/track-that-stat/registerPageSession.php",{ current_post_id: "480" }); jQuery.post("http://www.digimed.ufc.br/cienciando/wp-content/plugins/track-that-stat/update.php",{ ajax: "ajax" }); setInterval("updateOnlineStatus()", 50000); // Update every 50 seconds }); function updateOnlineStatus() { jQuery.post("http://www.digimed.ufc.br/cienciando/wp-content/plugins/track-that-stat/update.php",{ ajax: "ajax" }); }