Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

auto back of pages on android #2949

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

auto back of pages on android #2949

patelbrijeshn opened this issue Nov 6, 2011 · 7 comments

Comments

@patelbrijeshn
Copy link

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
Copy link
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
Copy link
Author

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
Copy link
Author

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

@patelbrijeshn
Copy link
Author

Hi Todd,

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

@toddparker
Copy link
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.

@patelbrijeshn
Copy link
Author

Thanks Todd,

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

@toddparker
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants