Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Perform action just before session timeout.

I have a domino form which we are using in a web application. On the top of the form I have the following : <META HTTP-EQUIV="Refresh" CONTENT="300; URL=Javascript:SaveCurrentDocument(); ">

It seems to be working, but sometimes, it does not work. What could be causing this ?  

I want the function to be executed when there has been 5 minutes of no activity from the user on the web page. In domino , what is regarded as activity before timeout ?

How else do I achieve this ?
0
devguru001
Asked:
devguru001
  • 2
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
There is a JavaScript setTimeout function, and also setInterval. Much cleaner than the meta refresh.

http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/
0
 
devguru001Author Commented:
Hey, sorry for the delay, I have already forgotten what was done here and will assign the points!!!

Thanks for your input as usual.
0
 
Sjef BosmanGroupware ConsultantCommented:
LOL
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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