try it... you'll like it!

stochasticism

The stochasticism on the left uses flickr's json feed for new photos. However, i think that flickr assumes you will parse this feed with some other application, if you try to load it straight up in your webpage, you realize that the feed actually calls a function called jsonFlickrFeed and its sole argument is the json object you want to use.

It's pretty neat, in order to use the data in your own webpage, you then need to write a function like this:

function jsonFlickrFeed(/*object*/ jsonFeed){}

However, because the javascript file is loaded 'sometime', you can't exactly start building body elements inside that function, so you can only use it to populate a global variable that contains your feed. From there, you add window.onload functions to do your bidding.

In order to make the whole thing appear faster than it really is, the code preloads the image you see when you first click on the stochasticism image. When you click, the images are swapped and a new image is preloaded. if you decide to click again, it happens quickly, but only if you don't do it too soon. the effect is totally 1995, but i don't need any dynamic code generation.

The main reason i included this widget was because quinn mahoney told me he had looked at my old webpage hoping to find my flickr photos.