<cfscript>
/**
* Pauses the processing for CF for a specified amount of time
*
* @param seconds number of seconds you would like to pause CF for
* @author Tony Petruzzi ([EMAIL PROTECTED]
* @version 1, April, 09 2002
*/
function PauseCF(seconds){
var currenttime = now();
while(DateDiff("s", currenttime, now()) LTE seconds){
continue;
}
}
</cfscript>
Here is a function a wrote to do this. All you have to do to use it is
assign the function to a variable.
<cfset temp = PauseCF(10)>
Have fun!
Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org
-----Original Message-----
From: Michael Tangorre [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 7:53 PM
To: CF-Talk
Subject: Pausing using CF
Hello.
Can anyone think of a way that I can achieve a pause for like 30 seconds to
a minute between iterations in a loop?
would another loop inside work that did nothing or is there a better way?
Mike
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.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