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

  • SEARCH
  • Home
  • 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 8294419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:12:37+00:00 2026-06-08T14:12:37+00:00

I have a phonegap app where i am using JQM for designing my pages.

  • 0

I have a phonegap app where i am using JQM for designing my pages.

The Issue i am facing is that Back Button generated by JQM is not working on android platforms on some cases. it works fine on IOS though

EDIT:
It works on Browsers too. So i suspect there may be some issue while using cordova.

I tried following this post and upgraded to cordova 1.8 from 1.7, but this dint solve my problem.

Cases where back button is not working

I have few JQM files that are called from the index page. Back button is not operational on these files. but inside those files there are JQM pages where Back Button does works

Back button is a standard JQM back button

<a data-role="button" data-rel="back">Back</Back>

I am stuck on this since long time.

Can anyone provide some directions?

EDIT:

Just to eliminate any confusion. BackButton event listener(Reference and suggested in the comments) does gets called. But this is device’s back button(the physical button). My issues are with JQM’s back button i.e back button with data-rel=”back”

  • 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-08T14:12:40+00:00Added an answer on June 8, 2026 at 2:12 pm

    Without seeing your code i cant help you with your JQM backbutton issue.. Although i can propose a new solution.

    You can register a backbutton listener like this

    document.addEventListener("backbutton",onBackClickEvent,false);
    

    then in the onBackClickEvent you can use it like this

    function onBackClickEvent {
    
    var currentPageId = $.mobile.activePage.attr('id');
    
      if(currentpageId == 'home') {
        $.mobile.changePage("#page2",{ transition : "slide"});
      } else {...}
    }
    

    Like this you can control the flow of your application. Hope this will help…

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

Sidebar

Related Questions

I have an app that runs fine using android phonegap 1.2 and jqm 1.0,
I'm using jQM/Phonegap and I'm trying to get control over Android's back button. This
I have been using phonegap.js with jqm to built a mobile android app. I
I have created a mobile app using Phonegap Build (not just Phonegap...but Build ).
I´m working on an app using PhoneGap, JQuery I have 2 standard javascript functions.
I have a jQuery Mobile PhoneGap app that loads all of my pages fine,
I have a simple Android App using simple js, jquery mobile and phonegap that
I have a PhoneGap app that is using the Localytics services and I would
Hi i write simple app using jqm and phonegap, and i have some problem
Hi i write simple app using jqm and phonegap, and i have some problem

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.