66
rated 0 times
[
68]
[
2]
/ answers: 1 / hits: 5082
/ 11 Years ago, fri, february 14, 2014, 12:00:00
I'm thinking on a clock that will refresh every full minute if system clock on users computer will look like this eg. 11:08:00, it'll refresh and 11:09:00 etc.
I've tryed to setInterval()
:
setInterval(function(){
$.ajax({
url: ../time.php,
context: document.body,
success: function(result){
$('.time').html(result);
}
})
}, 60000);
But it's reloading every minute after page load.
Is there any solution?
More From » jquery