title: Why isn't this jquery.get function working?
body: <p>I've been trying to create a small page and all it does is update some values from a source document. The page loads fine, but I don't get the results from the requested source. The <code>.fail</code> function runs, but the <code>textStatus</code> and <code>errorThrown</code> values don't appear in the <code>alert()</code> window that pops up.</p>
  
  <p>I'm very new to javascript and jquery. I'm trying to bash this together with pieces found from the web to figure it out but nothing seems to be working. Mainly, it's the response I think I'm falling down on...</p>
  
  <p>Anyway, here's the code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
        &lt;script type="text/javascript" src="~/Scripts/jquery-1.9.1.js"&gt;&lt;/script&gt;
  
    &lt;script type="text/javascript"&gt;
  
      function update() {
        $.ajax({
          type: "GET",
          url: "http://192.168.2.86:15890/linearlist.xml",
          dataType: "xml"
        }).done(function (res) {
         //alert(res);
        }).fail(function (jqXHR, textStatus, errorThrown) {
          alert("AJAX call failed: " + textStatus + ", " + errorThrown);
        });
      }
  
    function GetData() {
      update();
      setTimeout(function () {
        GetData();
      }, 50);
    }
  });
  
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
      GetData();
  &lt;/script&gt;
    &lt;div class="result"&gt; result div&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>I've update my code re: @Ian's answer. It's still not working, sadly. I'm not getting the <code>textStatus</code> or <code>errorThrown</code> results either. I've tried debugging with Internet Explorer through VS2012 but it's not getting me far. If I put the URL into a webpage, I can view the XML document.</p>