Hello,
I'm in the following situation (simplified for the sake of clarity):
Code JavaScript:function foo(param,functionName) { var result = functionName(param); return result; }
As you can see, I'm trying to call a function from inside another function, the name from the child function being passed as a parameter to the parent function.
Can JS do that? It's pretty straightforward with PHP, but I can't find a way to do it with javascript.
![]()



Reply With Quote




Bookmarks