With JavaScript this is tricky, but you could use something like this:

<SCRIPT LANGUAGE="JavaScript">
if (confirm('You have been inactibe for x minutes.  Logout?')) {
        // logout code here
};
</SCRIPT>

This only gives them "OK" or "Cancel" as options.  I don't think you can
prompt and set your own button labels.  Also, since the message box is
modal, I don't think the browser could not load a new page until the prompt
was answered so you couldn't automatically send them to a logout page if
they didn't respond.

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


-----Original Message-----
From: Janine Jakim [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 8:36 AM
To: CF-Talk
Subject: ot-Logout alert message


I have some js that checks the time an automatically logs out if there
hasn't been any activity in the last 15 minutes.  This sometimes takes
people by surprise.  I'd like to add something that either counts down
"There has not been any activity.  You will be logged off in 15
seconds...14...13...12..."
or just a generic alert that does something like "because there has been no
activity you are going to be logged off- if this isn't correct please click
on continue session"
Does anyone have this and would be willing to share it? 
Thanks,
J

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to