My Del.icio.us Recommendation Snippet (ver. 2.0)

What's this ?

"My Del.icio.us Recommendation Snippet" is a recommendation link list generator extracted from site owner's bookmarks archived in del.icio.us. If you tell your del.icio.us ID to the site, you can get the site owner's bookmarks as a recommendation. While creating your recommendation list, the relevance between your del.icio.us tags and site owner's tags are calculated, and then site owner's archived bookmarks are fetched using most common tag information.

Why is this cool ?

Because we don't need any server infrastructure for generating recommendation list. Entire generation process is done in client side Javascript. JSON (or JSONP) and On-Demand JavaScript techniques are used to get del.icio.us posts.

How does it work ?

Seeing is believing. Demonstration is below here.

Recommendations

Cool. I want to use this module for my site.

You can cut and paste generated code to your site.
To generate order-made script code for your site, you have to input your del.icio.us id into the text box below.

HTML Code Generator

Site Owner's Del.icio.us ID:
Bookmarks Display Size (default : 5):
Recommendation Mode :
Debug :

How can I customize the output view ?

You can use some template language like TrimPath JST. Just setting 'template' property to the instance.

e.g.

<script type="text/javascript" src="./js/trimpath/template.js"></script>
<script type="text/javascript">
var ownerId = 'stomita'; // Change this ID to your del.icio.us ID ! 
var drv = new DelRecView(ownerId);
drv.template = TrimPath.parseTemplate(document.getElementById('resultTemplate').value);
drv.render(document.body);
</script>

I'd like to download code.

You can download JavaScript source code from here (zipped). Old source code (ver 0.1) can be downloaded from here (zipped).

Update History

Contact

shinichi.tomita * at * hotmail * dot * com