Is it possible to call a function in javascript from a string, where the function is in an object?
e.g: call "main.object.doSomething()" (notice it is a string) from the object below.
window.main = {
object: {
doSomething: function(){
alert('Called');
}
}
}
--- Update ---
...without using eval();