CF9 to CF11 cfscript
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:359102 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 to CF11 cfscript
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
ColdFusion BBCode routines
I was wondering if anyone has some battle tested BBCode routines to convert BBcode to html and one to covert the HTML created back to BBcode? I have inherited a forum that has rolled its own BBcode Html routines and the kiddies are finding ways to imbed scripts into the various BBCode routines. I would prefer not to have to re-create the wheel. I have tried Google but can't seem to find much of anything coldfusion related on the subject. Any assistance is appreciated. Dennis Powers UXB Internet - A website Design and Hosting Company P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 W: http://www.uxbinternet.com W: http://www.ctbusinesslist.com ~| 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:359104 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm