i want send cross domain ajax request, server provides json(not jsonp) response, there anyway make request ?
here's i've did:
var url='http://*******:***/rest/code/results.json'+'?addressline1='+ad1+'&city='+city+'&stateprovince='+sp+'&postalcode='+pc+'&country='+cn; $.ajax({ url:url, datatype:"jsonp", type:'get', processdata:false, crossdomain:true, contenttype:"application/json", success: function (output) { alert(json.stringify(output)); alert(output); }
}); response :
uncaught syntaxerror: unexpected token :
any appreciated.
thank you
Comments
Post a Comment