I found the needed function: In exhibit.js there is a function the handles the import of predefined facet-selections from the URL: "Exhibit._Impl.prototype.importSettings"
To sum up, its quite easy to implement a mechanism that saves the current state of the filters. Just save the exported URL in a cookie and manually import the values using the import functions for each component (= facet). Best, Walter On 1 Apr., 13:46, walter jenner <[email protected]> wrote: > hi axel! > > thanks for the great tip! For HTML5 enabled browsers one can use > history.pushState(null, 'title', exported-url ); on leaving the page > (clicking the link to the item detail page) to save the selection > state. super easy! > > buuut, on browsers that do not support that history.pushState thing, I > would have to save the url in a cookie (for example) and manually > initialize the exhibit filters to the specific values. I guess it > could be pretty easy, as I assume there is an appropriate function > which I could call. -- probably someone can give hints where to look > for that? > > thanks again! > Walter > > On 1 Apr., 12:19, Axel Hecht <[email protected]> wrote: > > > > > > > > > There's an exporter for facet selections, you can go to the orange scissors, > > and get "Facet Selections". You can probably re-use that code to do > > something like gmaps "link to this page" thingie. > > > The js-code for that is Exhibit.FacetSelectionExporter._exportUrl() > > > Axel > > > 2011/4/1 walter jenner <[email protected]> > > > > I would need exactly the same functionality, namely to remember the > > > selection of filters when leaving an returning from a detail page. > > > > I guess it could be somehow accomplished by hacking history.js file - > > > does anyone have any hints? > > > > Thanks a lot! > > > Walter > > > > On 4 Sep. 2009, 13:48, garethwi <[email protected]> wrote: > > > > Hi there, > > > > > Does anyone know how to savestate/rememberyour selection when > > > > returning to a page after having clicked on a link. All the examples > > > > are with either a floating div, or open in a new window. Is there a > > > > magic setting which stores all the selections in a cookie, or > > > > something like that? > > > > -- > > > 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. -- 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.
