I want to make a cross domain ajax request using json`
$(function() {
$(".x25").autocomplete({
source: function(request, response) {
$.ajax({
url: "http://localhost:8983/solr/select",
processData: false,
crossDomain: true,
contentType: "application/json",
jsonp: false,
data: {
q: "name:" + request.term + "*",
wt: "xslt",
tr: "solr2json.xsl"
},
dataType: "jsonp",
success: function() {
alert("Success");
},
error: function() {
alert("failure");
}
});
return false;
}
});
});
This is my code, i am keep trying with json and jsonp but did not get succeed and i dont have any control on remote server. Any help.