You cannot define functions within other functions. Move it OUTSIDE of
the OnRequestStart function. Then you should be good to go.  


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----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:264072
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to