title: Call a function without using eval?
body: <p>I have an object attached as <code>data</code> to a DIV. I also have a string that contains the name of a function of that object.</p>
  
  <pre><code>function callFunction(divId, funcName, data) {
    o = $(divId).data('myObject');
    // how do I call o.funcName(data) ???
  
  // Somewhere else...
  callFunction('#myDivId', "myFunction", someData);
  </code></pre>
  
  <p>The <code>divId</code> and <code>funcName</code> are actually coming from a Java applet on the page, which is why they're strings.</p>