Skip to content

Instantly share code, notes, and snippets.

@taboularasa
Created March 9, 2009 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save taboularasa/76048 to your computer and use it in GitHub Desktop.
Save taboularasa/76048 to your computer and use it in GitHub Desktop.
jQuery JSON RPC
$(document).ready(function(){
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
function(data){
$.each(data.items, function(i,item){
$("<img/>").attr("src", item.media.m).appendTo("#images");
if ( i == 3 ) return false;
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment