You could just use jsstringformat() to escape strings in javascript ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com
-----Original Message----- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 11:43 AM To: CF-Talk Subject: application.cfc I am starting to use application.cfc and when I placed this function that I use to escape quotes I get an error. I have it in the onRequestStart function. Should I have it elsewhere? <!--- escape quotes for javacript messages ---> <cfscript> function escapeQuotes(str) { return replace(str, "'", "\'", "ALL"); } </cfscript> Unable to complete CFML to Java translation. Error information unsupported statement: class coldfusion.compiler.ASTfunctionDefinition ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264052 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4