I'm dynamically building a tabbed interface based on the information that a user wants to see. When the page loads, I get an array of the names of the widgets that control the tab content and I load their script files dynamically. Currently I'm resorting to eval() to bind the widget. Is there a way to get the widget object by string name?
-
eval(
'$(myTabSpace).'
+ widgetNane +
'({options})');