I figured it out. When I added the code you helped me with, I forgot to call the routine that will set the interval every second. That code was never called, so the time would show up from the start and whenever the form was reset etc.
Changed the below:
function reset_main() {
// alert('asdf');
document.getElementById("form1").reset();
getthedate();
}
TO:
function reset_main(){ // alert('asdf'); document.getElementById("form1").reset();
goforit(); }
Marked as answer by tvb2727 on Feb 24, 2012 05:04 PM
tvb2727
Participant
925 Points
1275 Posts
Re: Current Time process on a webpage
Feb 24, 2012 05:03 PM|LINK
I figured it out. When I added the code you helped me with, I forgot to call the routine that will set the interval every second. That code was never called, so the time would show up from the start and whenever the form was reset etc.
Changed the below:
function reset_main() { // alert('asdf'); document.getElementById("form1").reset(); getthedate(); }TO: