Have you considered a database to supply the data? This works nicely for us.
Architecturally, we have: Data layer (in our case MySQL) Transition layer (in our case PHP script queries and transforms to JSON format) Presentation layer (SIMILE Exhibit and/or other widgets/frameworks) The data is updated directly in the DB and reflected realtime in the front end (only requiring a browser refresh). -Mark On Sep 24, 6:45 am, nunb <[email protected]> wrote: > 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(); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
