title: Storing ajax response array into a variable for later usage
body: <p>Hi I need to store an AJAX Response into two variables x and y or into a array.
  My AJAX response is a array. I am able to see the data but only with and alert into che call.
  I need the data outside the ajax call</p>
  
  <pre><code>var x;
  var y;
  
  $.ajax({
      url: 'ajaxload.php',
      dataType: "json",
      success: function (data) {
          x = data.posX;
          y = data.posX;
          alert(x + " " + y);  // I can se data but I need outside ajax call
      }
  });
  </code></pre>