Error while fetching data from cross domain using ajex
when i try to fetch the data using Jason from cross domain i am getting this kind of error "Error: jQuery1910031708905171111246_1388038501367 was not called" i am using ajax callback functionality and my jQuery version is 1.9.1.
$.ajax({
type: "GET",
url: 'my url', //the script to call to get data
jsonp: "callback",
dataType: 'jsonp', //data format
timeout: 10000,
success: function(data) //on recieve of reply
{
var id = data[0]; //get id
var vname = data[1]; //get name
// --------------------------------------------------------------------------------------
// 3) Update html content
// --------------------------------------------------------------------------------------
$('#output').html("<b>id: </b>"+id+"<b> name: </b>"+vname); //Set output element html
},
error: function (request, status, error) {
alert(error);
}
});