Yes, it does work. Thanks. However, is there a way to make sure it always
works, even if the browser doesn't have javascript enabled?

On 10/18/05, Matthew Small <[EMAIL PROTECTED]> wrote:
>
> Yeah, it works. I just tried it.
>
> Matthew Small
> Web Developer
> American City Business Journals
> 704-973-1045
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Matthew Small [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 2:52 PM
> To: CF-Talk
> Subject: RE: A timeout alert
>
> Use CF to find the difference from now until your time in milliseconds,
> then
> use the following code to execute it. Say your time is five minutes from
> now:
> 5 minutes * 60 seconds * 1000 milliseconds = 300000 milliseconds
>
> <script lang="javascript">
> function TimeExpired()
> {
> alert ("Your time is up!");
> window.location.href = "http://server.com/somepage.html";;
> }
> </script>
>
> <body onload="setTimeout('TimeExpired();', 300000 );
>
>
> I haven't tested this but I think it will do the trick.
>
>
> Matthew Small
> Web Developer
> American City Business Journals
> 704-973-1045
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Ken [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 2:29 PM
> To: CF-Talk
> Subject: Re: A timeout alert
>
> I need some help with that javascript, please.
>
> Thanks.
>
> On 10/18/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> >
> > You've got the time you need in the database so you can get the
> difference
> > of now and that time then use that as your count down value in js
> >
> >
> > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> >
> > -----Original Message-----
> > From: Ken [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 18, 2005 1:55 PM
> > To: CF-Talk
> > Subject: A timeout alert
> >
> > Hi. I am working on a forum application. There is a fixed time to
> respond
> > to
> > each posting. I want the user responding to a posting to get an alert,
> > even
> > if he is typing at the last minute, saying: "Sorry, this posting has
> > reached
> > its expiration time, you are being taken to the home page now."
> > There's a db field that holds the expiration time for each posting.
> That's
> > what we will compare the current time to. Or maybe start a timer as soon
> > as
> > the user comes to the page, and display an alert at the end of the
> timer.
> > Any ideas how to do this in CF? Code examples will help.
> >
> > Thanks,
> > Ken
> >
> >
> >
> >
> >
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221367
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to