CV> I'm trying to pass a function name via a URL and then call that
function. I

Arent you exposing your CFC/Method Name by doing the above...
Perhaps a better way is to use a facade and have mappings to whatever your
need
to call via action params.

Joe Eugene

----- Original Message ----- 
From: "Cedric Villat" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 14, 2003 5:49 PM
Subject: Dynamic CFC function call


> Jon, Raymond,
>
> Thanks for the tip. I'll modify the cfc to do this.
>
> Cedric
>
> >Why not have the function logic in the cfc as well?
> >
> >mycfc.execute(url.function)
> >
> >where execute() looks at the value pass, executes the necessary method
> >and returns back the result.
> >
> >Maybe it's just me, but mycfc.#url.function#(); would seem to be the
> >antithesis of self-documenting...
> >
> >-- 
> > jon
> > mailto:[EMAIL PROTECTED]
> >
> >Monday, July 14, 2003, 5:32:53 PM, you wrote:
> >CV> I'm trying to pass a function name via a URL and then call that
function. I
> >CV> want to do something like this (Assuming mycfc has been created
already):
> >
> >CV> <cfscript>
> >CV> mycfc.#url.function#();
> >CV> </cfscript>
> >
> >CV> Any idea how I can do this? I am getting an error because of the #'s.
> >CV> Anyone?
> >
> >CV> Cedric
> >CV>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to