[thelist] Tip: Flickr does JSON

Christian Heilmann codepo8 at gmail.com
Thu Aug 17 17:00:42 CDT 2006

I just realised that flickr does not only offer your photos as RSS:
but also as JSON

While the format is a bit on the adventurous side, this means that you
can easily display your latest shots without having to resort to a
backend solution or Ajax with IFRAME trickery to avoid the
cross-domain issue. All you need to do is to create a SCRIPT tag on
the fly with the URL as the src and a callback function called
jsonFlickrFeed() which will retrieve the JSON object as a parameter.

I've done this and added some other bits and bobs, voila: Dynamic
Flickr badge without inline SCRIPT or other shenanigans:

Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/

More information about the thelist mailing list