I found this site that allows to convert RSS feeds into json. It also provides a way to specify a callback, so i think users are able to make jsonp calls to this web service. However, i tried different ways to do that but none worked. Here is my code:
$(document).ready(function () {
$.ajax({
type: "GET",
url: 'http://www.blastcasta.com/feed-to-json.aspx',
dataType: "jsonp",
jsonpCallback: "loadRSS",
data: {
feedUrl: 'http://xml.corriereobjects.it/rss/homepage.xml',
param: "callback"
},
success: function (data) {
var list = "";
for (var propertyName in data) {
list+=data[propertyName];
}
console.log(list);
},
error: function(xhr, ajaxOptions, thrownError){
alert(ajaxOptions)
}
});
});
Whatever i try, the success handler doesn't get executed. I get error handler instead. I tried with jsonpCallbak: "callback", jsonpCallback: "?", param: "callback" and other values too but without success. I have to use ONLY javascript without the support any server side scripting language (no aps, no php, etc.) Did someone get this service working in his site? Any suggestion would be really appreciated!