I need to dynamically assign the name of a function to an element of an associative array. This is my attempt which does not work. The problem I am asking for help with is here
Access the functions using this syntax window[function_name]('para1');
window[function_name]('para1');
Your usage will be something like this
var msg = window[cr['cmd1']](x);