adrianlee / super-simple-photo-gallery

A beautiful and easy-to-use image gallery for showcasing your images on a BlackBerry Playbook!
9 stars 2 forks source link

MVC / Navigation #3

Closed adrianlee closed 12 years ago

adrianlee commented 12 years ago

Navigating between modes such as 'most viewed', 'favourite', 'recent'.

Will this be multiple pages? I was thinking of a single page with routing using hash. e.g. the nav links would look like /#favourite. instead of /favourite/index.html

Checkout http://documentcloud.github.com/backbone/#Router

No page refresh required. JS will remove all DOM elements in container and repopulate our page.

adrianlee commented 12 years ago

http://documentcloud.github.com/backbone/#examples

choiboi commented 12 years ago

I agree with the idea of using this as it reduce the size of the application.

My only concern is that I am assume that when the user navigates between modes, the browerfield will not log the url into its history. So how will the user go back to it first original list of pictures? Will we have a mode which allows the user to go back to its previous list of pictures?

adrianlee commented 12 years ago

backbone implemented.

TODO: localStorage Multiviews Router

adrianlee commented 12 years ago

TODO: Router for fav, recent, most viewed pages. Localstore persist only one instance of source. No duplicates

adrianlee commented 12 years ago

All implemented in Pull Request #7