3
I made a page for real-time data sample, and need real-time update after 3 minutes.
I tried that code:
$(function() {
setTimeout(function(){ location.reload(); }, 180000);
});
Unproven.
I don’t know if I need to use the (document)
to perform the verification in the certainty of the entire loaded document, but within the ready
I thought it would solve.
The Meta part could not use, by the structure of my system (Goals are elsewhere, and time is for only one part). But Javascript worked. Missing
window
.– William Aparecido Brandino
Ha ok, but know that you can use meta another time when you think applicable. Yeah, the window was missing and I didn’t even notice that lapse :P . I’ll put that addition in the answer
– Miguel
This story of missing
window.
is wrong, window is a global object, accessible to all scopes and it is not necessary to type, what must have occurred is that the author created some variablevar location = xyz;
and this affected the current scope, minus the global.– Guilherme Nascimento
@Guilhermenascimento is true. Well noted
– Miguel
You have been mentioned here: http://meta.pt.stackoverflow.com/q/5719/132 - I invite you to express yourself.
– Victor Stafusa
Thank you @Victorstafusa, I will
– Miguel