Use CF_BLOCK from the Tag Gallery.
This is the tag's description as written by the author:
"This tag simply stops the execution of the current template for the
specified number of seconds. No loops or temporary files. Does not consume
ANY server resources.
It uses only two nested CFLOCKs that form a deadlock for the given time. The
page execution stops without any ColdFusion activity during the blocking
period"
P.
-----Original Message-----
From: Gavin Myers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 27, 2000 2:14 PM
To: CF-Talk
Subject: RE: Delay
why not make a delay w/javascript?
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from old browsers
// Copyright � 1999 Doug Popeney
// Created by Doug Popeney ([EMAIL PROTECTED])
// JavaScript Made Easy!! - http://www.easyjavascript.com
function startTimer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=10;
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if(curTime>=closeTime)
location = "YOUR REDIRECTING LINK"
else
timeLeft();
}
function timeLeft(){
count = closeTime-curTime;
document.timer.counter.value = count + " secs."
window.setTimeout("Timer()",1000)
}
// -->
-----Original Message-----
From: Simon Horwith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 27, 2000 9:52 AM
To: CF-Talk
Subject: RE: Delay
Try using getTickCount:
THIS SHOULD CREATE A 2 SECOND TIMER!!
<CFSET tickBegin = GetTickCount()>
<CFLOOP FROM="1" TO = "1000000000000" index = "index">
<CFSET tickEnd = GetTickCount()>
<CFIF tickEnd - tickBegin IS 2000>
<CFBREAK> OR YOU COULD PUT THE CFLOCATION RIGHT HERE, INSTEAD
</CFIF>
</CFLOOP>
~Simon
-----Original Message-----
From: Michael Gagnon [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 25, 2000 9:07 PM
To: CF-Talk
Subject: Re: Delay
I use a CFLOOP to create a delay.
<CFLOOP Index="Timer" From="1" to="15000" STEP="1">
</cfloop>
There must be a better way, but I haven't found it yet.
----- Original Message -----
From: "Parker, Kevin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 9:58 PM
Subject: Delay
> Can anyone help please?
>
> I'm trying to set up a delay in page without using a meta tag.
>
> I've tried this but it relocates straight way. Do I need to tell it that
the
> values are specifically dates? TIA!
>
> <!--- Create a 2 second delay --->
>
> <CFSET Beginning = Now()>
> <CFSET Ending = Now()>
> <CFSET Difference = #DateDiff( "s", Beginning, Ending )#>
> <CFLOOP condition="Difference LT 2">
> <CFSET Ending = Now()>
> <CFSET Difference = #DateDiff( "s", Beginning, Ending )#>
> </CFLOOP>
>
> <!--- Relocate to the menu page --->
>
> <cflocation url="test_id.cfm" addtoken="No">
>
>
>
>
> ********************************
> Kevin Parker
> Service and Communication
> WorkCover Corporation
>
> [EMAIL PROTECTED]
>
> ph: +61 8 82332548
> fax: +61 8 82332000
> ********************************
>
>
>
>
>
****************************************************************************
> This e-mail is intended for the use of the addressee only. It may contain
> information that is protected by legislated confidentiality and/or is
> legally privileged. If you are not the intended recipient you are
prohibited
> from disseminating, distributing or copying this e-mail. Any opinion
> expressed in this e-mail may not necessarily be that of the WorkCover
> Corporation of South Australia. Although precautions have been taken, the
> sender cannot warrant that this e-mail or any files transmitted with it
are
> free of viruses or any other defect.
> If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and destroy the original e-mail and any
copies.
>
****************************************************************************
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.