On 2/16/07, Edward Summers <[EMAIL PROTECTED]> wrote:
> Thanks for Exhibit--it's a wonderful idea and implementation that
> pushes the limits of what the web is. In following along with the
> tutorial I thought I might be able to simply change the exhibit/data
> link to point at some delicious json:
>
>    <link href="http://del.icio.us/feeds/json/inkdroid?
> raw=1&count=100" type="application/json" rel="exhibit/data" />

That isn't application/json, but it fortunately is jsonp, which
Exhibit is growing increasingly good support for. Since a few minutes,
you can use the above with the Exhibit 2.0 branch if you change the
type to application/jsonp and add an attribute
ex:converter="Delicious" to it. The items you get have the properties
url (u), label (n), description (d) and tags (t) respectively.

The 2.0 branch is sort of bleeding edge, so doing this might not be
for the faint of heart.

To try it out, link the API from
http://simile.mit.edu/repository/exhibit/branches/2.0/src/webapp/api/exhibit-api.js?bundle=false

and do not have an onload attribute on your body tag. Instead, slap on
an ex:ondataload="window.exhibit = Exhibit.create()" attribute, and
you should be up and running.

-- 
 / Johan Sundström, http://ecmanaut.blogspot.com/

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to