function - Most efficient / Best way to call a javascript method contained within an object - by string -


alright - here's story:

i have form definition:

<form method="post" data-callback="object[callback]"> 

there global living object called: object has method callback();

what best method of parsing string in "data-callback", converting function name (but can object - - not global function) , calling specific params, applied specific context? :)

thanks!


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -