Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9101975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:16:03+00:00 2026-06-17T01:16:03+00:00

I have a JQuery Mobile app with two pages: page1 and page2 On page1

  • 0

I have a JQuery Mobile app with two pages: page1 and page2

On page1, I am redirecting the user to page2 via the following code:

$.mobile.changePage("/home/page2/", { transition: "slide" });

Page2 has three data-role="page" elements in it. Each of these pages has the following in the footer:

<div data-role="footer" data-position="fixed"> 
    <div data-role="navbar">
        <ul>
          <li><a href="#screen1">Screen 1</a></li>
          <li><a href="#screen2">Screen 2</a></li>
          <li><a href="#" class="ui-btn-active">Screen 3</a></li>
        </ul>
    </div>
</div>

If I navigate directly to /home/page2 the tabs work fine. However, when I redirect the user to page2 via changePage(), the tabs do not work. What would cause this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:16:04+00:00Added an answer on June 17, 2026 at 1:16 am

    From the jQuery Mobile documentation:

    Linking within a multi-page document

    It’s important to note that if you are linking from a mobile page that
    was loaded via Ajax to a page that contains multiple internal pages,
    you need to add a rel=”external” or data-ajax=”false” to the link.
    This tells the framework to do a full page reload to clear out the
    Ajax hash in the URL. This is critical because Ajax pages use the hash
    (#) to track the Ajax history, while multiple internal pages use the
    hash to indicate internal pages so there will be conflicts in the hash
    between these two modes.

    changePage() inherently uses Ajax to load the page and that is the cause of your problem, because only #screen1 gets loaded.

    If your app UI and logic allow you make your redirect from Page1 to Page2 with a link:

    <a href="page2.html" rel="external" data-transition="slide">Go to Page 2</a>
    

    If you have to redirect programmatically consider splitting the multipage Page2 into separate JQM pages (e.g. page21.html, page22.html, page23.html) and link them appropriately or produce your content dynamically when user clicks on navbar tabs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery Mobile app, that loads pages in via ajax eg page1.html,
I have a Cordova app that runs the jQuery mobile framework and loads pages
I have a very standard CRUD app in Rails & Jquery Mobile with two
I have a jQuery Mobile PhoneGap app that loads all of my pages fine,
I have a page in my jQuery Mobile app with two link-based buttons, I
I have a single page jQuery Mobile app with four data-role='pages' in place; so,
I have a full Jquery Mobile app the currently builds and looks fine in
I have a jquery mobile web app. On my iPhone when I am on
I have some strange scrolling problems with my PhoneGap (using jQuery Mobile) app: I'm
I have a PhoneGap App using jQuery Mobile. At a certain page, I cannot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.