Execute dynamic function with param in javascript
<p>If the following possible? 
I wish to move the alert(result) into a function and to dynamically call it.</p>

<p><strong>Current</strong></p>

<pre><code>$.ajax(this.href, {
    success: function (result)
    {
        alert(result);

        AjaxComplete();
    }
});
</code></pre>

<p><strong>My Attempt - not working</strong></p>

<pre><code>$.ajax(this.href, {
    success: function (result)
    {
        window["MyAlert(result)"]();

        AjaxComplete();
    }
});

function MyAlert(result)
{
    alert(result);
}
</code></pre>

<p>Is this possible?</p>
