title: Jquery Ajax request is not working
body: <p>I am trying to send an jquery ajax request from javascript. I am using the following code for it, but it is not working. </p>
  
  <pre><code>$j.ajax({
      url: 'https://c.na14.visual.force.com/apex/controlApi',
      type : 'GET',
      dataType: 'jsonp',
      success : function(result){
          alert('Result is '+result);
      },
      error : function(jqXHR, textStatus, errorThrown) {
          alert('status is '+jqXHR.status);
          alert('Error is '+textStatus);
      }     
  });
  </code></pre>
  
  <p>My response is in json format. Its like </p>
  
  <pre><code>{
    "mydata" : "xxxxxxx"
  }
  </code></pre>
  
  <p>When I using the above ajax request, the error function gets executed. It shows status is 200 and Error is "parsererror". But, my response in the json format (verified it). So, I am confused with this issue.</p>
  
  <p>Thanks</p>