title: $.ajax and JSONP. ParseError and Uncaught SyntaxError: Unexpected token :
body: <p>First of all, I've been looking for the answer to my problem in several topics and I couldn't find a solution that works with my code.</p>
  
  <p>I'm trying to get the answer from a servlet, if I go to <code>http://XXXZZZ/Servlet/Login?login=pepe&amp;pass=1234</code> I receive valid JSON as expected:</p>
  
  <pre><code>{"id":3,"login":"pepe","key":"0D1DBA4BE87E02D43E082F9AA1ECFDEB"}
  </code></pre>
  
  <p>But when I try the same with $.ajax, I get 2 errors.</p>
  
  <pre><code>$.ajax({
      type : "Get",
      url :"http://XXXZZZ/Servlet/Login",
      data :"login="+login+"&amp;password="+pass,
      dataType :"jsonp",
      success : function(data){
      alert(data);},
      error : function(httpReq,status,exception){
      alert(status+" "+exception);
      }
  });
  </code></pre>
  
  <p>First error (in the popup window):</p>
  
  <pre><code>parsererror Error: jQuery17104145435250829905_1336514329291 was not called
  </code></pre>
  
  <p>Second error (in the Chrome console):</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token : Login 1
  </code></pre>
  
  <p>(And there is the JSON I'm waiting for).</p>
  
  <p>P.S. I have to use dataType : "jsonp", because if I use "json" I also have problems with the Cross-Domain.</p>