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...? -- Adam On 10 August 2014 15:56, Rob Voyle <robvo...@voyle.com> wrote: > > Hi folks > > Migrating from cf9 to cf11 > > <cfscript> > thread = CreateObject("java", "java.lang.Thread"); > thread.sleep(4000); > </cfscript> > > is now giving an error message "invalid token" > > What should the syntax be. I simply want the page to pause while data is > entered into a > database. > > Thanks > Rob > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:359103 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm