I am switching an application.cfm to application.cfc. Im my application.cfm I defined a function that I used through out the web site. <cfscript> function replaceQuotes(arg) { return Replace(arg, '"', "&##34;", "ALL"); } </cfscript>
Now in the application.cfc I cannot place the function in onRequestStart I get an error. So now, to have this function available to the web site, I can just make a new function in application.cfc like this: <cffunction name="replaceQuotes"> <cfargument name="arg" required="true"> <cfreturn #Replace(arguments.arg, '"', '&##34;', 'ALL')# /> </cffunction> Right??? I just want to make sure I am doing this right and im not going to kill application.cfc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287204 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4