title: Making cross domain jquery ajax calls to Restful webservice?
body: <p>I am using Jquery Ajax calls to access REStful webservices as below. The webservice is hosted on different domain.</p>
  
  <pre><code>   $.ajax({
      type: "GET",
      url: "some url hosted on differnt domain",
      crossDomain: true,
      contentType: "application/json; charset=utf-8",
      dataType: "jsonp",
      success: function(responseJson) {
          alert("json"+responseJson);
  
  
      },
      error: function(xhr, status, error) {
          var err = eval("(" + xhr.responseText + ")");
            alert(err.Message);
  
      }
  });
  </code></pre>
  
  <p>Am not sure whether it is not hitting the webservice.It is going to error block but no alert is displayed. Am i doing anything wrong here?</p>
  
  <p>Thanks!</p>