On 1/23/07, David Karger <[EMAIL PROTECTED]> wrote:
> Johan, since you're thinking about generic importation into exhibit, let
> me suggest that the true "exhibity" way to do this would not be through
> javascript calls to calls like loadGoogleSpreadsheetData but through
> enrichment of the html tags in an exhibit.  For example, regarding
> David's spreadsheet importer, I'd argue that the exhibity way to have a
> google spreadsheet would be to avoid javascript

I quite agree; the microformat way is closer to heart for me, too. I
presume the present lack of a mode for that in exhibit is along the
lines of not freezing APIs until we're feeling comfy with their
workings. Despite some of its look of maturity, it's still in most
respects a hack, with the awkward partial support for JSONP offered by
Google Spreadsheets today.

As the situation improves, it will make more sense lowering the
threshold significantly for how to marry the two. I don't really mean
to discourage anyone from starting today, but the quirks can be a bit
puzzling and frustrating to bang your head against, especially if you
are unaware of present limitations or how to debug the system.

> and instead in the head of the exhibit have something like
> <link
> href="http://spreadsheets.google.com/pub?key=pLvsUS-CftHo21r-0xjKvVA";
> type="google-spreadsheet" rel="exhibit/data" />

I don't think that particular link is very well suited, though; as my
experimentation suggests, while you could pick the key and put it in
mid-path between the double slashes of

  http://spreadsheets.google.com/feeds/list//od6/public/basic

to get the JSON feed, that "od6" part seems to be the specifier that
picks a specific sheet for the feed, and isn't readable to an external
web page. But given the proper URL, yes, the above suggestion works.
Though I'd use a rel="google/spreadsheet" instead; the exhibit/data
format is very different from Google's feed.

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

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

Reply via email to