Call javascript function from call?
<p>How do i make so when i make this call</p>

<pre><code> client.notification("test", "test", function(){
      alert("Hello world");
 });
</code></pre>

<p>I can call the stuff inside the function(){....} in "client.notification"?</p>

<p>ex.</p>

<pre><code>var client = ({"notification" : function(a,b,c){
    document.write(a + b);
    if ( .... ) {
        //call the alert stuff from the function "c"
    }
});
</code></pre>

<p>I've tried this:</p>

<pre><code>$('#notification').click(eval(c));
</code></pre>

<p>without luck</p>
