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 filter.
On 10/29/2015 9:48 PM, Tully Hansen wrote: > 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 > links/checkboxes) refreshes display of embedded tweets. > > Presently I have: > > jQuery(document).on("dataload.exhibit", function(evt) { > twttr.widgets.load(); > }); > > Which works on first load, but switching back and forth between views > or filtering on facets loses the embed display. I have also tried the > kitchen sink approach (not in demo): > > jQuery(document).on("exhibitConfigured.exhibit itemshow.exhibit > onResetAllFilters.exhibit exhibitConfigured.exhibit > onFacetUpdated.exhibit importReady.exhibit onBeforeFacetReset.exhibit > registerFacets.exhibit registerComponents.exhibit > onItemsChanged.exhibit dataload.exhibit > onAfterViewPanelSwitch.exhibit", function(evt) { > twttr.widgets.load(); > }); > > Which also kinda works. However, using either approach, any change in > facet filters causes loss of proper embedded Tweet display. Tips or > examples to suit a complete JavaScript novice welcome. > -- > You received this message because you are subscribed to the Google > Groups "SIMILE Widgets" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/simile-widgets. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/simile-widgets. For more options, visit https://groups.google.com/d/optout.
