Skip to content

Instantly share code, notes, and snippets.

@jimbojw
Created August 2, 2010 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimbojw/505281 to your computer and use it in GitHub Desktop.
Save jimbojw/505281 to your computer and use it in GitHub Desktop.
$.ajax({
url: "http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json",
dataType: "jsonp",
jsonp: "jsoncallback",
success: function(data){
$.each(data.items, function(i,item){
$("<img/>").attr("src", item.media.m).appendTo('#images');
return i < 3;
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment