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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -