Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,941
    Thanks
    79
    Thanked 4,424 Times in 4,389 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •