Forum Discussion
ChiaraS
14 years agoLithium Alumni (Retired)
Hi, using JSONP is the way to go I think, if you need to get the data from a different domain.
This code seems to work (I replaced it with your url):
<@liaAddScript>
LITHIUM.jQuery.ajax({
url: 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://share.skype.com/stats_rss.xml&output=json_xml',
dataType: 'jsonp',
jsonp: 'callback',
jsonpCallback: 'jsonpCallback',
success: function(){
//alert("success");
}
});
function jsonpCallback(data){
var xml = data.responseData.xmlString;
alert(xml);
var feed = data.responseData.feed;
alert(feed);
}
</@liaAddScript>
rholder
14 years agoAce
I am looking for a similar solution, however I am not a developer. Is the code above all you need to paste into the component content box, or is there more?