Hi Adam

Its the end of a workshop registration form where multiple participants can be 
registered.
For each participant a series of emails are generated to both the participant 
and 
the workshop host, and the participant information is entered into a data bases.

The page is then paused for a couple of seconds and then the database is 
checked to see if all the information is entered before the confirmation page 
is 
presented. I had trouble with the combination of email and database actions, I 
think it was the speed of the email process, putting in the pause solved the 
problem, let the email processes conclude before going to the confirmation.

some of this code is very old I didn't know about sleep()

Rob    


On 10 Aug 2014 at 16:19, Adam Cameron wrote:

> 
> You know CFML has had the sleep() function (which does what your
> code does)
> built-in since CF8, right?
> 
> Your issue is probaby that "thread" is a keyword in CF9+.
> 
> Replace your code with:
> 
> sleep(4000);
> 
> Wanting the page to pause whilst data is entered into the DB is an
> odd
> thing... given DB operations in CFML are blocking by default. It'd
> be good
> to see more of your code to cast some light on what you're doing
> here...?
> 
> -- 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359105
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to