Jquery get() confusion with callback syntax
<p>I want to specify a function to be run as my callback as past the get() response to do it, I can't figure out the correct syntax for this, I can correctly do this:</p>

<pre><code>function GetXML() {
    $.ajax({
        url: '/scripts/test.json',
        success: tester(data)
        success: function (data) {
            myCustomFunction(data)
        }
    });
}
function myCustomFunction(data) {
    alert("fire"+data);
}
</code></pre>

<p>but what I want to do is this: (which fails)</p>

<pre><code>function GetXML() {
    $.ajax({
        url: '/scripts/test.json',
        success: myCustomFunction(data)
        }
    });
}
function myCustomFunction(data) {
    alert("fire"+data);
}
</code></pre>
