i already see dozens of issues with it but that would work great for projects 
with all screens in the DOM and no form submission.

Remi

On 23 mars 2012, at 07:46 AM, Sean Gilligan <[email protected]> wrote:

> On 3/22/12 8:50 PM, Remi Grumeau wrote:
>> Speaking about that, i was thinking about a way to store iUI History array 
>> as a localStorage string that could be re-populate onload so backButton, 
>> even when reloading, could slides back to a previous screen (if exists, 
>> otherwise it would go the last existing previous one)
>> 
>> Thoughts ?
> 
> Something like that might be cool.  I've been thinking about this issue since 
> I added the current (limited) bookmark support to iUI.  There are multiple 
> ways of doing it and I think the right one will depend upon the architecture 
> of the particular app.  It seems to me the right approach for iUI core would 
> be to create a plugin mechanism to do this.
> 
> A plugin that uses localStorage for the history would be awesome, but it will 
> require more than just storing the history array (current navigation stack).  
> A bookmark URL might be for a page/view that was on a different navigation 
> path than the one that was last saved in localStorage, or be pasted into an 
> email and sent to a user who has never visited the site.
> 
> 
> -- Sean
> 
> p.s. Here's an app that uses iui.css and has bookmarkable views by using 
> Angular.js:
> http://msgilligan-iui-angular.googlecode.com/git-history/msgilligan-angularjs-test/web-app/samples/iuifeed-ngview/index.html#!/entry/c28662d28dec613876bebacb2df994722c09f3fb
> 
> It was my first experiment with iUI + Angular integration:  There's no iui.js 
> and no back button and a handful of other issues.  But take a look at the way
> the URLs are built:
> list view => index.html#!/entries
> detail view => index.html#!/entry/<id>
> 
> The setup is in lines 7-10 of services.js:
> $routeProvider.when('/entries', {template: 'partials/entry-list.html',   
> controller: FeedListCtrl});
> $routeProvider.when('/entry/:sha', {template: 'partials/entry-detail.html', 
> controller: EntryDetailCtrl});
> $routeProvider.otherwise({redirectTo: '/entries'});
> see here:
> http://code.google.com/r/msgilligan-iui-angular/source/browse/web-app/samples/iuifeed-ngview/js/services.js?name=msgilligan-angularjs-test
> 
> I'm really interested in adapting this type of approach for iUI.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" 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/iphonewebdev?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" 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/iphonewebdev?hl=en.

Reply via email to