Labs » del.icio.us Taggit Widget
The hack appends an unordered list <UL> of your
(or any user's) public bookmarks to an element. It uses the
YUI Get Utility
to fetch JSON from the del.icio.us API.
Don't worry about including the YUI Get or Global libraries,
as I've included 'em. Just copy the code below and replace
${username} and ${tags}
Delicious.taggit.fetch() takes three (3) arguments:
- ${username}: obviously, your del.icio.us username
- ${tags}: a single tag (string) or an array of tags (array[])
- the element to append to, either its Id (string) or its reference (object)
Note: if you don't pass a tag to query against, it'll return your latest bookmarks. What's also cool is that you can pass in an array of tags and it'll return an intersection of bookmarks.
<script type="text/javascript"
src="http://cdn.yahooza.com/js/labs/del-taggit/del-taggit.js"></script>
<script type="text/javascript">
Delicious.taggit.fetch('${username}','${tags}','del-taggit-container');
</script>
Example below, yahooza's bookmarks tagged 'topten' AND 'film'