EEXCESS / visualization-widgets

EEXCESS visualisation widgets are JavaScript based visualisations for cultural heritage and scholarly content. The widgets are used in the different EEXCESS clients, like the Chrome Extension. They are typically iframes and therefore self-contained.
http://eexcess.eu/
1 stars 5 forks source link

[dashboard] ask for current resultset after initialization #27

Closed schloett closed 9 years ago

schloett commented 9 years ago

The dashboard should ask for the current result set after its initialization via posting a {event:'currentResults'} message to the parent window, which should in turn respond with a {event:'newResults', data:} message. This is, because it might be loaded on demand and hence have no information about the current result set. Also, it is not possible to trigger a 'newResults' event from the parent container, after the parent container has loaded the Dashboard, because the parent container does not have information about the loading status.

schloett commented 9 years ago

Example for illustration: http://rawgit.com/EEXCESS/c4/develop/examples/searchBar_Paragraphs/index.html (Wait until results are retrieved, then open the result pane and change the view to dashboard -> will remain in loading state)