> This must be easier than I'm making it this afternoon.


> All the UDFs from cflib.org are written in cfscript.  Is
> there a way to
> store them in a CFC, say Util.cfc, and then call them from
> another CFC?
> When I attempt to do so CF can't find the function.  I
> experimented and
> wrapped the cfscript inside a cffunction definition and
> now CF apparently
> can't see the arguments I'm passing in.



> So, how does one call cfscript-based functions from within
> a CFC?

You'd have to either convert the argument list from the function to
<cfargument> tags or you can inject the created function into the cfc
like this:

<cfscript>

function blah(...) { ... }

variables.blah = blah;

</cfscript>

At least I think that might work. I know you can inject functions into
CFC's -- I've done it. I've not tried it in this particular context.

s. isaac dealey   954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.fusiontap.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197200
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to