title: JSObject.call don't seem to work with Javascript namespaces
body: <p>I have a Java Applet which uses some Javascript functions which are declared in an Javascript Object. </p>
  
  <p>The Javascript looks like this</p>
  
  <pre><code>            var foo ={
              bar: function( var) {
              //do stuff
              }};
  </code></pre>
  
  <p>The Applet is loaded after the Javascript Object has been created.
  The function is callable if I use the Javascript console. I use the following call </p>
  
  <pre><code>foo.bar.("something"); 
  </code></pre>
  
  <p>my Applet uses the call method of JSObject </p>
  
  <pre><code>    Object[] args = { "something" };
      win.call("foo.bar", args);
  </code></pre>
  
  <p>This results in an Exception. </p>
  
  <pre><code>netscape.javascript.JSException: No such method "foo.bar" on JavaScript object
  </code></pre>
  
  <p>if I use the eval method of JSObject to call foo.bar it works. but I don't want to use eval</p>
  
  <p>Is there a way to make the call method work as expected so that I can use a Javascript object to structure my code ?</p>