Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


time stamp

time stamp

time stamp


I am building a log in and out to track the time each employee spends on a specific job.
I can capture their time in and time out with no issues, but to calculate the total time is where I am a bit confused.
my script is very simple, I simply to capture the time in the employee scans his/her id this triggers the save button and the time gets saved in a field called "TIMEIN" this also redirects to the logout page, allt the data is passed from one page to the other. in there I capture the log out time the same was as the log in time if I were to leave it just like this I would get the log in and out in the database fields.
but when I try this does not work because the page would need to refresh, is there a way that I can add my "Timein" plus the current time, just hours and minutes?


var ctrlPrice = Runner.getControl(pageid, 'TIMOUT');

var ctrlQuantity = Runner.getControl(pageid, 'TIMEIN');

var ctrlTotal = Runner.getControl(pageid, 'TOTTIM');


function func() {

  ctrlTotal.setValue(Number((ctrlPrice.getValue()) - Number(ctrlQuantity.getValue()))/100); 


window.onload = func; 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close