title: Trouble declaring Global var outside function
body: <p>Try as I might I can't get my data outside the function with a global var. I have tried everything that I can think of including window.nuTime without success.</p>
  
  <pre><code>$.ajax({
      cache: false,
      type: 'POST',              
      url: 'servertime.asp',
      data: {},
      success:    function (data) {
                  $('#servertime').html(data);
                  window.nuTime = data;
                  //alert(data);
                  },
      error:      function (jxhr, msg, err) {
                  $('#response').append('&lt;li style="color:red"&gt;' + msg + '&lt;/li&gt;');
                  }
      });
  
  alert(nuTime);
  </code></pre>