I'm having trouble applying the following Javascript code to my platform:
<script>
var $scores = $("#refresh");
setInterval(function() {
$scores.load("index.php #refresh");
}, 30000);
</script>
Because the <div>
in question is in a separate file and I include
it on all pages or I will never know what page the script will run on and in the code above I have to specify an ex page : index.php