Click to See Complete Forum and Search --> : Refreshing a script.


Burrow
06-06-2003, 11:41 PM
I've thrown together a little script, that tells you the current time based on GMT, also known as a clock.

Good, now that i have that out, although what I need is to figure out how to reload just the script every minute. I can reload the entire page, but that would present itself to be quite a problem if I do say so myself ;)

Anywho, I was just wondering if it is even possible to perform that action in javascript or not. Any help is appreciated.

Thanks.

Khalid Ali
06-06-2003, 11:43 PM
Read up on

setTimeout and setInterval functions in javascript...despite the fact that I am still trying to understand why would you need to reload the page????

Jona
06-06-2003, 11:52 PM
For NN4+ and IE4+, you can use setInterval and layers/divs. For earlier browsers (which probably no people use anymore--I hope), just keep it static and don't reload the page every minute.

Jona

Burrow
06-07-2003, 10:39 AM
hmm...

I see, so I can just use setInterval().
Alrighty, thanks you three.

Off to finish the script!!!!!
*Cheesy super-hero music playing*