On 2/16/07, Edward Summers <[EMAIL PROTECTED]> wrote:
> 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?

They were among the first to adopt it, as in they had something very
close to jsonp before Bob Ippolito named it. Really picky people might
argue their format isn't strictly embedded json (top level object is
an array, not an object literal), but for most practical purposes,
they do indeed.

> > 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?

Rather an error on my part; adopting the n attribute as the Exhibit
label was probably not my brightest idea the five minutes I whipped up
the delicious converter. I'll move the furniture about a bit, renaming
the url to label and label to name; then things should work much
better.

> v2 seems to only show 3 items, and a bunch of them appear combined.

My guess is those are the three unique names you have. I'll get back
on the list when I've fixed the 2.0 branch; I'm cooking dinner at the
moment. :-)

> 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...

And that I haven't bundled the changes (and given you an URL to the
unbundled version). Will also get fixed eventually.

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

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

Reply via email to