Make that "escape strings FOR javascript" not IN javascript ;-) ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com
-----Original Message----- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 12:11 PM To: CF-Talk Subject: RE: application.cfc 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:264055 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4