I'm trying to read the Flickr feed in order to parse the images. However, the images are in the media:thumbnail tag. Where would I begin to make a mediaRSS parser? Does anyone have an example?
A:
I recommend jQuery.getJSON(). As far as i know Flickr provides a JSON feed.
Here is an example from a current project using jQuery and xml:
$("#loading").show();
$.ajax({
type: "GET",
url: "/path",
dataType: "xml",
success: parseXml
});
function parseXml(xml) {
$(xml).find("item").each(function() {
$("#news_list").append('<p>Content</p>');
$("#loading").hide();
});
}
Works awesome!
You only have to change the datatype to json
.
gearsdigital
2010-07-15 22:02:07
Awesome! thank you very much
Jon McIntosh
2010-07-15 22:06:29
You're welcome :) If you have further questions feel free to ask.
gearsdigital
2010-07-15 22:11:52