title: Jquery Ajax Return
body: <p>I try to load a local XML File with Jquery, with this function:</p>
  
  <pre><code>function initXML()
  {
    var returnVal;
    $.ajax({
      url: 'js/xml/Menue.xml',
      dataType: 'xml',
      success: function(data) {
          alert(data);
          returnVal = data;
      },
      error: loadfail
     });
    return returnVal;
   }
  </code></pre>
  
  <p>and test the return value with </p>
  
  <pre><code>alert(initXML());
  </code></pre>
  
  <p>The first alertBox has a value, but the second alertBox is empty.
  What is wrong?</p>
  
  <p>Thanks!</p>