Skip to content

Instantly share code, notes, and snippets.

@mausch
Created July 9, 2009 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mausch/144074 to your computer and use it in GitHub Desktop.
Save mausch/144074 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<style>
ul {
list-style-type: none;
}
</style>
</head>
<body>
<script>
$.getJSON('http://pipes.yahoo.com/pipes/pipe.run?_callback=?', {
_id: 'bGjr2c1s3hGi5qx20EypaA',
_render: 'json',
limit: 5
}, function(d) {
var ul = $('<ul/>');
$.each(d.value.items, function() {
ul
.append($('<li/>')
.append($('<h2/>')
.append($('<a/>').attr('href', this.link).html(this.title)))
.append($('<p/>').html(this.description))
);
});
$('body')
.append($('<h1/>').html(d.value.title))
.append(ul)
;
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment