I'm sure a JS programmer somewhere just lost their wings, but I found a fix
that seems to work! Embedded tweets displaying properly across facet
filtering.
jQuery(document).on("onItemsChanged.exhibit", function(evt) {
*setTimeout(function(){twttr.widgets.load()}, 0);* // works!
Exhibit is not designed for realtime updates. It fetches its data once,
and never interacts with a server again. dataload.exhibit is only
twittered once, because data is never loaded again. ditto for
exhibit.configured.itemsChanged and facetUpdated does get triggered
each time you change a
Thanks David. I can see why calling twttr.widgets.load(); on data
load.exhibit won't work after the initial load. Oddly (to my limited
understanding), I can put twttr.widgets.load(); inside of
onAfterViewPanelSwitch.exhibit:
jQuery(document).on("onAfterViewPanelSwitch.exhibit", function(evt) {
I want embedded tweets to show in my Exhibit 3, see table facet in demo
here: http://tullyhansen.github.io/botDB/nobel3ed.html – I would like to
know where I should call Twitter's twttr.widgets.load(); such that any
change in Exhibit data display (including filtering via facet