Try using the JS setTimeout function.
Window.setTimeOut(alert('This page has been idle for 3 minutes'),180000);
180000 corresponds to 3 minutes, since JS measures in milliseconds. If
you're looking for real idleness, your setTimeout will actually have to be
set every time you focus or blur any element on the page. So, you'd say
something like:
<Input type="text" name="FormElement" onfocus="doTimeOut();"
onBlur="doTimeOut();">
and your function would be
var myTimeOut='';
function doTimeOut(){
if(myTimeOut!=''){
Window.clearTimeout(myTimeOut)
}
myTimeOut=Window.setTimeOut(alert('This page has been idle for 3
minutes'),180000);
Hope that helps,
Jason Powers
Fig Leaf Software
202-797-5440
-----Original Message-----
From: Ing. Luis J. Ramirez Flores [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 5:27 PM
To: CF-Talk
Subject: Timeout !!!
How can I control inactivity time in my web?, I want to send a
message when a page has 3 minutes of inactivity, is that possible ?
I�m using CF4.5 and WebsitePro 1.1 on Win98 and WinNT
==================================================================
IMPRESION EXPRESS Tel.(8)363-0888 Fax(8) 363-7199
Ave. Real San Agustin #222 - H3 E-mail: [EMAIL PROTECTED]
Residencial San Agustin
Garza Garcia, N.L. MEXICO
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists