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) {
console.log("onAfterViewPanelSwitch");
twttr.widgets.load(); // works
});
… and have embedded Tweets (re)render after switching views, but attempting
to do the same inside of either onItemShow or onItemsChanged (both of which
seem to be called when manually filtering facets, a fact I deduce through
liberal console.log()) fails to (re)render Tweets when filtering.
jQuery(document).on("onItemsChanged.exhibit", function(evt) {
twttr.widgets.load();
console.log("onItemsChanged");
});
jQuery(document).on("onItemShow.exhibit", function(evt) {
console.log("onItemShow");
twttr.widgets.load(); // doesn't work?
});
My wild guess is that there's some other thing (function? event?) that
Exhibit does after onItemShow or onItemsChanged that actually puts data
(inc. tweet embed links) onto the page so that twttr.widgets.load(); has
something to render?
--
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.