I've successfully implemented the jQuery BBQ plugin to build a quick prototype, however I am having one small issue related to my particular setup:
- One of the pages, "#catalogue", includes a grid of items that are generated randomly using a function, "randomItems()", triggered on hashchange (when coming from another page).
- The user then clicks on any of these items in the grid to view the #detailspage.
- Upon clicking on the browser Back button, I'd like the user to view the #catalogue page (which works fine) BUT prevent the page from generating a new set of random items onload (so keep whatever items were last shown).
Is there a way to know that the user has hit the back button, so in that case I don't trigger the "randomItems()" function?