send a jquery callback function inside a variable
<p>I have this jquery function</p>

<pre><code>    function example(file, targetwidget, callback){

    $(targetwidget).load(file, {limit: 25}, function(){
        $("#widget_accordion").accordion({fillSpace: true});
    });
}
</code></pre>

<p>it's working ok
when I do:</p>

<pre><code> example('http://example.com/', "#divid", callback);
</code></pre>

<p>but I want to send the callback function inside the (callback) variable
i.e: instead of butting the $("#widget_accordion").accordion({fillSpace: true}); inside the callback function I want to send it:</p>

<pre><code> example('http://example.com/', "#divid", '$("#widget_accordion").accordion({fillSpace: true});');
</code></pre>

<p>and then the function must be something like:</p>

<pre><code>function example(file, targetwidget, callback){

$(targetwidget).load(file, {limit: 25}, function(){
    callback;
});
</code></pre>

<p>but that's not working</p>

<p>Thanks in advance for your help</p>
