I want to embed my delicious.com Links into my CMS-driven Website. I tried to understand the instructions on https://delicious.com/rss but i cannot understand what is really needed to get the links e.g. sorted by tag on my website.
Until April 2014 it worked with such an Code:
<script type="text/javascript" src="http://feeds.delicious.com/v2/js/fachschule_gartenbau/Teichbau_allgemein?title=&count=100&sort=date&extended"></script>
Now they say that they changed the syntax into http://feeds.delicious.com/v2/json/ ...
I was trying to replace the "js" in my code with "json" but this didn't work. Has anybody an idea?
The actual (and old) code is for example:
<script type="text/javascript" src="http://feeds.delicious.com/v2/js/fachschule_gartenbau/gemüse+gemüsebau?title=&count=100&sort=alpha"></script>
Nothing in the head.
This code doesn't work. Can be inspected on http://www.fachschule-gartenbau.de/gemuese.htm
A bit late to the party, just noticed that the tag cloud was broken for me as well. You now have to download the JSON yourself, then build your tag list (or tag cloud) from it. Alternatively, you could of course also build something in PHP etc. server-side, but I'm assuming that you want to stick with a client-side JavaScript-based solution.
The steps are:
To download the JSON, I'd normally use an
XMLHttpRequest(), but that won't work here due to cross-site scripting protections. So I just resorted to calling the JSON API with a function callback in an HTML<script>tag (I've used the username delicious in this example):This script tag will take care of steps 1 and 2 and will then call the
printDeliciousTagsfunction with the contents of the JSON as parameter so we can build something from it.Here's a very basic implementation that sorts the tags alphabetically and print them as an unordered list:
Complete HTML example for a basic unordered list:
Complete HTML example for a tag cloud: