title: Ajax GET request, why does success function not print?
body: <p>I have this function that performs a GET request for a given id:</p>
  
  <pre><code>var findById= function(id) {
      console.log('findById: ' + id);
      $.ajax({
          type: 'GET',
          url: rootURL + '/' + id,
          dataType: "json",
          success: function(data){
              console.log('findById success: ' + data.name);
              currentRaceEntry = data;
              renderList(currentRaceEntry);
          }
      });
  };
  </code></pre>
  
  <p>When I enter <code>sitename/rest/entries/8</code> it returns a page with the xml for the object requested(as expected). (I can show this code but I dont think the problem is there). When I preform this request the console shows:</p>
  
  <pre><code>findById 8
  </code></pre>
  
  <p>My question is why doesn't it show <code>console.log('findById success: ' + data.name);</code>? The xml displays in the browser which looks to me like it was successful. So why doesn't the success function appear to be called? Thanks!</p>
  
  <p>EDIT</p>
  
  <p>this is what it looks like: </p>
  
  <p><img src="https://i.stack.imgur.com/1W9zy.jpg" alt="enter image description here"></p>
  
  <p>The console in the browser is blank</p>