Editing globals inside of a jquery request
<p>I'm using JQUERY to parse a XML file, while at it, I'm writing into multipple arrays. Now my big troubles is to pass the results of the arrays outside the script.</p>

<pre><code>&lt;script type="text/javascript"&gt;
//....
var ProjectList = new Array();

var N = 0;
var ID = [];
var A = [];


$.get("urlaub.xml", function(GetList) {

    $(GetList).find("u").each(function() {

        var $U = $(this);
        ID.push($U.attr("id"));
        $(this).A.push($U.find("A").text());


        N++;

    });

    alert(N); //not 0!        
});

alert(N); //allways 0
// ......​​​    
&lt;/script&gt;
</code></pre>

<p>So, I need to find a method to make the arrays and the variable N accessable from outside, and im failing at it.</p>

<p>Thanks in advance.</p>
