You can create the pause with

<cfset Thread = createObject( "java", "java.lang.Thread" ) />
<cfset Thread.sleep(2000) />

Or if on a lower version of CF you could use the WAITFOR command in SQL
within a cfquery tag..

Taco Fleur - Pacific Fox
an industry leader with commercial IT experience since 1994 .
http://www.pacificfox.com - Web Design and Development




> -----Original Message-----
> From: Les Mizzell [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 5 October 2005 8:01 AM
> To: CF-Talk
> Subject: Make a loop repeat and control timing?
> 
> 
> Is there any way to force CFLOOP into an endless loop, using 
> cfsleep to 
> control the timing of advancement?
> 
> Something like:
> 
> <cfloop index="i" from="1" to="20">
>    1. Do something
>    2. wait 2 seconds then next step
>    3. if "i" = 20 start over
> </cfloop>
> 
> Yea, I know .... it's crazy. Javascript is a better way to go, but I 
> just wondered it this was possible...
> 
> -----------
> Les Mizzell
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:220081
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