guna bathina

guna bathina

  • NA
  • 96
  • 7.3k

Uncaught SyntaxError: Unexpected token : in jquery with webs

Nov 5 2017 7:48 AM
when am trying aceess a webservice remotely am getting Uncaught SyntaxError: Unexpected token error but service works properly and returns output as aURL
 
http://localhost:53830/sample.asmx/getPinnumber?callback=jQuery31105488972800365737_1509872462552&mobileNumber=9030733573&Imei=123456789012345&_=1509872462553
 
O/P:
 
{"Status":200,"Response":"1234"}
 
jquerycode:
  1. $.ajax({  
  2. type:"GET",  
  3. url: "http://localhost:53830/sample.asmx/getPinnumber",  
  4. contentType: "application/json; charset=utf-8",  
  5. data: { mobileNumber: 9030733573, Imei: "123456789012345" },  
  6. dataType: "jsonp",  
  7. success: function (json) {  
  8. alert(json.d);  
  9. },  
  10. error: function () {  
  11. alert("Hit error fn!");  
  12. }  
  13. });