i have tried farting about with an altered code i use for other things... but it dont seem to want to work
so if anyone could do me the honours. it would be much appreciated
As I don't believe in copy-pasting when learning I wont make the script for you, but show you how and where you can learn to make onTorniquet wrote:i need a ajax script that runs like every 10 minutes that executes a php script.
i have tried farting about with an altered code i use for other things... but it dont seem to want to worklol
so if anyone could do me the honours. it would be much appreciated
Code: Select all
function run_timer(){
var url="../_scripts/test.php"
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
alert('5 seconds!')
var t=setTimeout("session_update()",60000)
}Code: Select all
<head>
<script src="../_javascript/testtimer.js" type="text/javascript"></script>
</head>
<body onload="run_timer()">
</body>