title: ASP.Net, jQuery, Ajax and a parseError
body: <p>I have tried to see if there is anything on this great site for this (and there probably is), so I am sorry if I have missed it.</p>
  
  <p>Anyway, I am calling a WCF endpoint using jQuery Ajax under ASP.Net.</p>
  
  <p>The Web service call is working fine in Fiddler and returns the following data:</p>
  
  <pre><code>    {"d": {"__type":"ProcessedTotals:#","DailyError":"0","DailyProcessed":"0","TotalError":"48","TotalProcessed":"70"}}
  </code></pre>
  
  <p>This is my code</p>
  
  <pre><code>     function GetData() {
          alert('Ajax Start');
  
          $.ajax({
              dataType: "jsonp",
              data: "{}",
              contentType: "json",
              url: "http://localhost/abc123/WebManagement.svc/ReturnTotals",
              success: (function (data) {
  
                  alert(data[0].TotalProcessed);
  
                  //$("#TotRecs").html(data.d.TotalProcessed);
                  //$("#TotErr").html(data.d.TotalError);
                  //$("#DayTot").html(data.d.DailyProcessed);
                  //$("#DayErr").html(data.d.DailyError);
  
              }),
              error: function (xhr, status, error) {
  
                  alert("FAILED:" + status);
              }
  
          })
  
          alert('Ajax End');
      }
  </code></pre>
  
  <p>Whilst debugging in Firefox the line that causes the error is SUCCESS:</p>
  
  <p>I know that it is using JSONP, as I am having to access the data from a different website.</p>
  
  <p>Thanks</p>
  
  <p>Paul</p>