A site I’m currently working has had boring and barren error pages. Until now!
I wanted some images from failblog.org to liven things up a bit. In a quick 20 minute hack, I took the site’s rss feed, parsed it for the right content using Yahoo Pipes, exported as JSON-P, pulled that in with jQuery, and displayed a random image.
Here’s the pipe I’m using:
The trick to pulling in Yahoo Pipe data via JSON-P is by adding a “_callback” argument, defining the callback function name.
The script:
1 2 3 4 5 6 7 8 9 |
|
And of course.. Demo page