Thanks Mark. Can you (or anyone really), show me the proper way to do this?
Cheers, Chris Mark A Kruger wrote: > Chris, > > I'd say our problem isn't cfscript (which I use routinely inside of a > cffunction tag). You problem is that you are declaring a functions inside of > a function. > > -mark > > > -----Original Message----- > From: Christopher Jordan [mailto:[EMAIL PROTECTED] > Sent: Friday, December 15, 2006 9:34 PM > To: CF-Talk > Subject: CFScript inside a CFC > > Hi folks, > > I've got a CFC with a function in it that contains CFScript tags. Like this: > > <CFComponent Name="SomeName"> > <CFFunction Name="SomeFunction" Output="False" ReturnType="String"> > <cfscript> > function MyFunction(arg) { > return arg; > } > </cfscript> > </CFFunction> > </CFComponent> > > BlueDragon seems to have absolutely no problems with this, but my host's > CFMX box pukes over this. > > What's the deal? This is the first time I've tried to use CFScript tags > inside of a component. I was told by some members of my local CFUG that > writing code within CFScript tags whenever possible is faster (performance > wise), so I'm giving it a go. > > Am I doing something wrong? > > Thanks, > Chris > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:264248 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

