auto back of pages on android #2949

Closed
patelbrijeshn opened this Issue Nov 6, 2011 · 7 comments

Projects

None yet

2 participants

@patelbrijeshn

Hi,

I am facing an issue where, when I go to page B from page A, use back button and then go to page C, page C loads fine and then in a second goes back to the previous page.

both page B and page C links are shown on page A.

Any idea, of what causes this ?

Thanks,
Brijesh

@toddparker
Contributor

Can you reproduce this in the docs? Can you give a specific example and info on what device/browser you see an issue?

.................................. . . . .
Todd Parker
Partner, Filament Group Inc.
102 South Street #3 Boston, MA 02111
todd@filamentgroup.com // 617.953.1617

On Nov 5, 2011, at 10:28 PM, "patelbrijeshn" reply@reply.github.com wrote:

Hi,

I am facing an issue where, when I go to page B from page A, use back button and then go to page C, page C loads fine and then in a second goes back to the previous page.

both page B and page C links are shown on page A.

Any idea, of what causes this ?

Thanks,
Brijesh


Reply to this email directly or view it on GitHub:
#2949

@patelbrijeshn

Below are the three page structures.

using: jqm rc2
Device: Droid
Reproducible on Android Emulator, android 2.3.3 sdk

I have following global settings:
$.mobile.defaultTransition = 'none';
$.extend( $.mobile , {
ajaxFormsEnabled : false,
ajaxLinksEnabled : false,
ajaxEnabled:false,
}

First Page: http://mydomain.com/webapp/mypage.jsp?code=test

Back

test

     <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
        <li id="psp_doc" ><a href='http://mydomain.com/webapp/mypage.jsp?code=test&amp;tab=Description_Tab' rel="external"  >Page Three</a></li>
    </ul>
</div>
<div data-role="footer"  align="center">
</div>

Page Two: http://mydomain.com/webapp/mypage.jsp?code=test&amp;tab=Documentation_Tab

Back

test

my data

Page Three: http://mydomain.com/webapp/mypage.jsp?code=test&amp;tab=Description_Tab

Back

test

my data

I am trying the docs on the android emulator. will update soon on that.

@patelbrijeshn

sorry, the html seems rendered.. I didnt find attachment opton.

@patelbrijeshn

Hi Todd,

If I disable pushState, it seems to solve the problem.
$.mobile.pushStateEnabled = false;

@toddparker
Contributor

I expected that was the case. Browsers are a bit inconsistent on how they handle pushState so in these situations, things can get wonky. We recommend disabling this if you run into issues, are using a lot of external links or are building a native app because the URL isn't seen.

@toddparker toddparker closed this Nov 6, 2011
@patelbrijeshn

Thanks Todd,

Is this something that will be taken a look at for a fix in future releases ?

@toddparker
Contributor

We definitely want this to improve, but from what we've found, we're sort of at the mercy of browsers to better standardize their handling of pop state and other factors. The quirks are due to inconsistencies that we can't see and resolve on our end unfortunately but we'll continue to improve this as we go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment