I have some downtime at the moment so I wanted to get back to coding a little bit. One of the things I've wanted to mess around with was the Flickr API, mainly because I upload a boatload of pics to the service. Chris Heilmann posted a really great tutorial on pulling back pics using JSON and plain ole JavaScript. I have to admit that it was insanely easy and Chris, as always, did a great job of breaking it down. I made a few tweaks since like he mentioned, document.write isn't the best choice for outputting and the code was trivial:

<code>
mainDiv = document.getElementById( "main" );
while(o.items[i]) {
foo = document.createElement( "img" );
foo.setAttribute( "src", o.items[i].media.m );
main.appendChild( foo );
i++
}</code> 



<code>var mainDiv = $( "#main" );
$.each( o.items, function( index, node ) {
	$( "&lt;img /&gt;" ).attr( "src",  node.media.m ).appendTo( mainDiv );
} );</code>

