is there a way to call this javascript function in this way?
<p>I'd like be able to call a function like item_edit.say hello passed as a string on the window object (like the last line of the following):</p>

<pre><code>var arc={ view: { item_edit: {} } };

arc.view.item_edit={
  say_hello: function(){
    alert('hello there');
  }

}

var f_name='say_hello';
var g_name='item_edit.say_hello';

var str=window.arc.view.item_edit[f_name]();  // &lt;- this works
var str2=window.arc.view[g_name]();  // &lt;- this is what I'm interested in; curently doesn't work
</code></pre>

<p>any ideas on how to get this to work?</p>

<p>thx in advance</p>

<p><strong>edit #1</strong> 
I guess I should add that probably don't want to be doing eval although the more I look at it, that might be what makes sense (and is in fact what eval was made to do).</p>
