If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Automatic stopwatch which saves text.

Hello I need a stopwatch that automatically starts and shows on a label on a site and I need to be able to stop it through a command and be able to get the time that it was stopped to send it to a database. Does anyone have a sparecode for this?

And I doubt very much that anybody has spare code sitting around that does exactly this.

But the principles are simple enough.

Do you need to use AJAX to tell the server to update the database? Or will you submit a <form> on the page to do so?

Thanks for the response. Basically I just need a timer that I can do something like stop(); and it will stop and then getFinalTime(); and put it on a string so that I can send it to my database. I dont need Ajax or help with the database part, just a timer that I can stop and get the lasted time from it.