• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Using Javacript to track time

I want to use java script to track when a page loads and then after 28 mins. do something. How reliable would using JS be? Any issues I need to lookout for? Any suggestions?
0
894359
Asked:
894359
  • 2
  • 2
2 Solutions
 
sjklein42Commented:
It works fine.  Use setTimeout.  I use repeating timeouts of half an hour or more all the time.  Of course, the page must remain loaded the whole time.  
0
 
894359Author Commented:
I was using that but found it super quirky on servers. Locally it ran fine but when on a web server it seemed to sped up significantly.
0
 
leakim971PluritechnicianCommented:
0
 
sjklein42Commented:

Are you talking about Server-Side javascript?  If so, you are right - Server Side javascript setTimeout does not appear to be reliable.  I thought you were talking about typical client-side javascript.
0
 
894359Author Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now