the parameters. Then you can pass that to a dynamic function like this:
<cfscript>
variables[event](argumentsCollection = argsStruct);
</cfscript>
I'm pretty sure this won't work, because of the syntax and the way CF parses
stuff. However, doing it this way should work:
<cfscript>
func = variables[event];
func(argumentsCollection = argsStruct);
</cfscript>
cheers,
barneyb
-----Original Message-----
From: Sparrow-Hood, Walter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:56 PM
To: CF-Talk
Subject: dynamic function call
I am dynamically calling functions on a page using the following:
<cfscript>
evaluate("#event#(#argumentList#)");
</cfscript>
I've tried every combination I can think of to eliminate the evaluate
function but nothing works. Anybody have any ideas??
Walt
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

