Hello,
I wonder if it's possible to update Exhibit in real-time, with fresh
data. Is there any way of getting data into Exhibit, other than this
sequence in the html head?
<head>
<link href="../../json/policies-explorer" type="application/json"
rel="exhibit/data" />
..stuff..
</head>
Searching for any mention of "exhibit/data" in the source has so far
yielded no clues, and these lines (248 onwards in exhibit.js) seem to
be the closest I can find:
var uiContext = this._uiContext;
for (var i = 0; i < collectionElmts.length; i++) {
var elmt = collectionElmts[i];
var id =
elmt.id;
if (id==null || id.length == 0) {
id = "default";
}
this.setCollection(id, Exhibit.Collection.createFromDOM2(id,
elmt, uiContext));
}
Lastly, in case anyone else is looking for it, to get the current set
of "label" or "id" elements of items that have currently been selected
(via filtering) one should be able to use this javascript snippet
(using, Firebug's console, for example):
window.exhibit.getDefaultCollection().getRestrictedItems().toArray();