sourcebitsllc / chocolatechip-ui

Mobile Web App Framework
www.chocolatechip-ui.com
MIT License
617 stars 88 forks source link

$.UIGoToArticle() loses history between tabs #74

Closed jeff183 closed 10 years ago

jeff183 commented 10 years ago

I have 3 tabs in my app. In one tab i have several articles and i use nav and back button to navigate. If the user goes to another tab, i have a button to return to the original tab, same article. I use pub/sub and chui/navigate/leave to know where to return to. I then use $.UIGoToArticle() to attach an event to the button.

So, that works great. But when i return to the original tab and article, it's back history (within that tab) is gone.

Would be nice if that was still there. Not sure if this is an issue or the way it is designed.

sourcebits-robertbiggs commented 10 years ago

Well, the way navigation history is currently handled, there is just one navigation history object for the app. So switching to a different tab will change the navigation of the list in a tab. I just noticed that Apple does preserve a separate navigation history per tab. But I’m not sure how I would go about introducing that. I’m going to have to spend some time thinking about the most efficient way to pull that off and try some prototyping. Sort message, it’s not happing tomorrow. Might be a while even. I’m in the middle of a refactor of how themes work to make it easier to change color schemes.

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 9:47 AM, jeff183 notifications@github.com wrote:

I have 3 tabs in my app. In one tab i have several articles and i use nav and back button to navigate. If the user goes to another tab, i have a button to return to the original tab, same article. I use pub/sub and chui/navigate/leave to know where to return to. I then use $.UIGoToArticle() to attach an event to the button.

So, that works great. But when i return to the original tab and article, it's back history (within that tab) is gone.

Would be nice if that was still there. Not sure if this is an issue or the way it is designed.

— Reply to this email directly or view it on GitHub.

jeff183 commented 10 years ago

ok thanks Robert. Is there a way to determine if the back button fails? right now, i just get a blank page. if i knew the back button isn't functioning, i could use $.UIGoToArticle() and just go back to the top of nav, within the tab.

jeff183 commented 10 years ago

Is there a way to determine if the back button fails? right now, i just get a blank page. if i knew the back button isn't functioning, i could use $.UIGoToArticle() and just go back to the top of nav, within the tab.

sourcebits-robertbiggs commented 10 years ago

Jeff, that’s a serious problem. If the back button returns to a blank page that means that somehow the reference to the page got deleted from the history object. I might want to do a Skype call with you where you share your desktop so I can see what’s happening. Do you have Skype?

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 12:30 PM, jeff183 notifications@github.com wrote:

Is there a way to determine if the back button fails? right now, i just get a blank page. if i knew the back button isn't functioning, i could use $.UIGoToArticle() and just go back to the top of nav, within the tab.

— Reply to this email directly or view it on GitHub.

jeff183 commented 10 years ago

The back button only fails when I go to a new tab, and then use $.UIGoToArticle() to go back to the original tab and article. then the history is lost and the back button gives me a blank page.

yes, i have u as a skype contact.

sourcebits-robertbiggs commented 10 years ago

What time zone are you in? I”m in PST (West Coast).

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 12:57 PM, jeff183 notifications@github.com wrote:

The back button only fails when I go to a new tab, and then use $.UIGoToArticle() to go back to the original tab and article. then the history is lost and the back button gives me a blank page.

yes, i have u as a skype contact.

— Reply to this email directly or view it on GitHub.

jeff183 commented 10 years ago

EST (Toronto)

sourcebits-robertbiggs commented 10 years ago

OK, you’re there hours ahead. Pick a time for tomorrow that works for you and lets do a Skype conference. My Skype handle is: rombiggs.

I”m in the office here at 12 EST, so anytime from then I’m available.

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 12:57 PM, jeff183 notifications@github.com wrote:

The back button only fails when I go to a new tab, and then use $.UIGoToArticle() to go back to the original tab and article. then the history is lost and the back button gives me a blank page.

yes, i have u as a skype contact.

— Reply to this email directly or view it on GitHub.

jeff183 commented 10 years ago

How about 7:30pm EST ?

From: sourcebits-robertbiggs [mailto:notifications@github.com] Sent: July-02-14 4:07 PM To: sourcebitsllc/chocolatechip-ui Cc: jeff183 Subject: Re: [chocolatechip-ui] $.UIGoToArticle() loses history between tabs (#74)

OK, you’re there hours ahead. Pick a time for tomorrow that works for you and lets do a Skype conference. My Skype handle is: rombiggs.

I”m in the office here at 12 EST, so anytime from then I’m available.

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 12:57 PM, jeff183 notifications@github.com wrote:

The back button only fails when I go to a new tab, and then use $.UIGoToArticle() to go back to the original tab and article. then the history is lost and the back button gives me a blank page.

yes, i have u as a skype contact.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/sourcebitsllc/chocolatechip-ui/issues/74#issuecomment-47828732 . https://github.com/notifications/beacon/1172906__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTk1MDgyMiwiZGF0YSI6eyJpZCI6MzYwODEzNzV9fQ==--5d70aadf4062f930204b7649b645128d65a3ed9b.gif

sourcebits-robertbiggs commented 10 years ago

That’s fine, that’d be 5:30PM here. Send me a connect request soon on Skype so were connected.

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 12:57 PM, jeff183 notifications@github.com wrote:

The back button only fails when I go to a new tab, and then use $.UIGoToArticle() to go back to the original tab and article. then the history is lost and the back button gives me a blank page.

yes, i have u as a skype contact.

— Reply to this email directly or view it on GitHub.

jeff183 commented 10 years ago

7:30pm (EST) is 4:30pm (PST). We are already connected on skype – we spoke 2 weeks ago or so.

I’ll call u at 4:30pm your time.

From: sourcebits-robertbiggs [mailto:notifications@github.com] Sent: July-02-14 4:12 PM To: sourcebitsllc/chocolatechip-ui Cc: jeff183 Subject: Re: [chocolatechip-ui] $.UIGoToArticle() loses history between tabs (#74)

That’s fine, that’d be 5:30PM here. Send me a connect request soon on Skype so were connected.

Robert Biggs Product Director ChocolateChip-UI www.sourcebits.com

On Jul 2, 2014, at 12:57 PM, jeff183 notifications@github.com wrote:

The back button only fails when I go to a new tab, and then use $.UIGoToArticle() to go back to the original tab and article. then the history is lost and the back button gives me a blank page.

yes, i have u as a skype contact.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/sourcebitsllc/chocolatechip-ui/issues/74#issuecomment-47829331 . https://github.com/notifications/beacon/1172906__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTk1MTExMywiZGF0YSI6eyJpZCI6MzYwODEzNzV9fQ==--97b6d14ef0c51920023168d41c8e530d114028eb.gif

sourcebits-robertbiggs commented 10 years ago

This has been resolved in version 3.7.0.