Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-09-2013, 10:03 PM   PM User | #1
icochea1
New to the CF scene

 
Join Date: Oct 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
icochea1 is an unknown quantity at this point
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?

Thanks!
icochea1 is offline   Reply With Quote
Old 01-09-2013, 10:35 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Stop it through WHAT command?

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?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 01-10-2013, 04:37 AM   PM User | #3
icochea1
New to the CF scene

 
Join Date: Oct 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
icochea1 is an unknown quantity at this point
Quote:
Originally Posted by Old Pedant View Post
Stop it through WHAT command?

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.
icochea1 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:50 PM.


Advertisement
Log in to turn off these ads.