I am trying to get images from my 500px account and display them on my portfolio inside a jQuery slider.
I have no problem with the jQuery slider part but I have never worked with RSS Feed before and I am not sure if that need PHP to pull the data and format it ready for the front-end or if it can simply be done via jQuery.
Any ideas on how I can get started on something like this?
Edit/Update
I hadn't seen that post while looking but having read through it I see how it is useful however it has run me into another problem.
$(document).ready(function(){
$.ajax({
type: "GET",
url: "http://500px.com/daimz/rss.xml",
dataType: "xml",
success: parseXml
});
// function that parses XML
function parseXml(xml){
// find node with name "catalogueResult" and run function for each
$(xml).find("item").each(function(){
// variables
var title = $(this).find("title").text();
var link = $(this).find("link").text();
var imgSrc = $(this).find("imageUrl").text();
var pubDate = $(this).find("pubDate").text();
var description = $(this).find("h2").text();
var photoItem= '<img src="'+imgSrc+'" width="275" alt="'+title+'"/>';
$(".feed").append(photoItem);
});
}
});
Now this gives me this error:
XMLHttpRequest cannot load http://500px.com/daimz/rss.xml. Origin http://localhost is not allowed by Access-Control-Allow-Origin.