I am getting an Invalid Error Label in my console error message.
My result.json file is in format like
{
"name": "Zara Ali",
"age" : "67",
"sex": "female"
}
and my code is like below from where i want to fetch above result.joson file
$(document).ready(function() {
//if submit button is clicked
$('#recaptcha_reload').click(function () {
$.ajax({
dataType: "jsonp",
url: 'http://www.remoteserver.com/advertise_api/result.json?callback=?&rpp=50&q=mozilla',
jsonp: "$callback",
success: function(data){
alert("#");
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
alert("$$");
}
});
});
});
What about this error ? Thanks