Use eval to get a reference to a function -
var Namespace = {
quack: function () {console.log('quack!')}
};
function test (fnName) {
var fn = eval(fnName);
fn();
}
test('Namespace.quack')
This could potentially allow you to pass other arguments if you want.
, , [fnName], - $.ajax - window ['$. ajax'] undefined.. , , eval - .