the laboratory: del.icio.us taggit

The hack appends an unordered list <UL> of your (or any user) 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:

  1. ${username}: obviously, your del.icio.us username
  2. ${tags}: a single tag (string) or an array of tags (array[])
  3. 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 you your latest bookmarks. What's also cool is that you can pass in an array of tags and it'll return an intersecting collection of bookmarks.

<script type="text/javascript" src="http://api.yahooza.com/services/www/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'
©1999 - 2008 yahooza. All rights reserved.

All information provided on this personal website is for whimsical purposes only. The opinions expressed here represent my own and not those of my employer (if any).