On Feb 16, 2007, at 8:50 AM, Johan Sundström wrote: > 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.
Wow, that's awesome...thanks for the quick reply. Now I feel the need to dig into the code to see how these extensions work :-) Does delicious support jsonp now? > 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. Almost--perhaps I did something wrong? http://inkdroid.org/exhibits/delicious2 Compare that to my exhibit v1 demo where I munged and stored the delicious data myself: http://inkdroid.org/exhibits/delicious v2 seems to only show 3 items, and a bunch of them appear combined. I noticed when formatting the delicious feed with simplejson that delicious is escaping single quotes (like \') which simplejson complained about. So I converted the \' to ' for my v1 demo. I wonder if that's causing the problem with my v2? Also v2 seems to cause my browser to spend a lot of time fetching stuff from simile.mit.edu -- but perhaps that's only because they're being served out of subversion and can't be cached... //Ed _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
