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
Post a Comment