I've trying to build profanity filtering api. The response of api is coming in JSON. I'm using following codes to access the api. But, it's showing some error which i can't able to fig out.
Here is my code..
$.ajax({
dataType: 'jsonp',
jsonp: 'callback',
url: 'http://www.employeeexperts.com/Profanity/index.php/rest/check/Good Morning',
success: function(data) {
console.log('success');
console.log(JSON.stringify(data));
},
error: function (header, status, error) {
console.log('ajax answer post returned error ' + header + ' ' + status + ' ' + error);
}
});
Regards