I am developing a Phonegap application. I read RSS feeds from the website and display it in an appropriate way. The problem is that I get Access-Control-Allow-Origin problem . This is the code That I am using . forget about the success function I was just trying .
$.ajax({
url: "http://fixit.ps/n/pngo/?feed=rss2&cat=4",
dataType: "xml",
success: function(data) {
console.log(data);
var $xml = $(data),
items = [];
$xml.find("entry").each(function(i) {
if (i === 30) return false;
var $this = $(this);
console.log($this);
console.log($this.find("title").text());
console.log($this.find("content").text());
});
}
});