For the project I'm working on, I need to dynamically call one of several functions (which are dynamically named by asp.net). How do I call a function when I have the function name in a string? A case statement is not an option, because the function names are dynamic.
Expand|Select|Wrap|Line Numbers
function function1() {
...
}
function function2() {
...
}
var functionName = 'function1'
...what next?
How do I execute the function whose name is stored in functionName?