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 7683279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:45:34+00:00 2026-05-31T18:45:34+00:00

I have a Jquery Mobile page. In my header I have a button to

  • 0

I have a Jquery Mobile page. In my header I have a button to open a hidden layer above my actual page. This layer also contains a header with a button on the same spot. If I show the layer and click the button, it “bleeds” through to the button below firing both.

Not sure if the HTML is any help:

<div data-role="page" id="base" data-wrapper="true">
   <div data-role="header" data-theme="a">
      // first button 
      <div class="headWrapLeft ui-btn-left">
        <div data-role="controlgroup" > 
           <select data-iconpos="notext" data-icon="home">
              <option value="global">ALL</option>
              <option value="local" selected="selected">SINGLE</option>         
              <option value="menu">Main Menu</option>
            </select>
         </div>
       </div>
       <h1>Header</h1>                  
    </div>
    <div data-role="content">
    // page content  
    </div>


    <div data-role="panel" data-id="setup" data-panel="popover"">

       <div data-role="page" data-show="first" id="main_setup">
      <div data-role="header" data-position="fixed" data-theme="a">
            // back button will be inserted here
            <h1>Setup</h1>
          </div>
          ...
       </div>
    </div>
 </div>// end wrapper page

The first page is my base page. The popover panel is an overlay container, which opens as a fullscreen HTML page on smartphones. On Tablet everything works fine, because the panel opens like a popup window AND there is no button “behind” the panel on the background. On smartphone however, the backbutton is sitting right on top of the background page select. When I click the back button, the select fires.

Question:
You can find some people asking here and there how to prevent bleeding through of clicks on Android. I have not really found any solution that works.

I’m not sure this has to do with event bubbling or z-index being ignored, so:

I’m looking for any ideas how to make sure, if I click on a button, this button and nothing else gets a click… Any idea on how to achieve this are greatly appreciated!

Thanks for help!

EDIT:
I think I know what’s wrong – see this issue on Android:
http://code.google.com/p/android/issues/detail?id=6721

Pondering what the best way to work around this is. I can’t set the background page to display:none or move it out of view, because the overlay pages is nested. I also don’t want to disable all background links while the overlay page is visible.

Thanks for some more ideas!

  • 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-05-31T18:45:36+00:00Added an answer on May 31, 2026 at 6:45 pm

    Ok. Here is how I’m doing it.

    When showing the overlay popover panel, I’m calling this:

    // Android-Bleeding-Click
    // http://code.google.com/p/android/issues/detail?id=6721   
    var $popPanel = $('div:jqmData(id="setup")');
    
    $('.ui-page').not( $popPanel.find('.ui-page-active') )
        .find(".ui-header")
        .first()
           .find(".ui-btn, input, select, textarea")
           .addClass('ui-disabled androidStealsMyTime')
           .attr('disabled','disabled')
    

    When hiding the overlay, I’m calling this:

    $('.androidStealsMyTime').removeClass('ui-disabled androidStealsMyTime')
                               .removeAttr('disabled');
    

    The above is for JQM enhanced elements. If it was plain inputs, you could toggle disabled on the input itself, but since JQM adds some elements as child or siblings, you need to capture everything there is. It’s not perfect … disabled=disabled on a.link elements is semantically questionable I guess, but then agin, it fits into one line and works.

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

Sidebar

Related Questions

I have a page on which I'm using JQuery Mobile. I am having difficulty
I have added an iframe to a JQuery Mobile page: The link to it:
Note: I'm using jQuery and jQuery Mobile. I have a mobile page which seems
Found this answer In Jquery mobile, Header and footers are always hiding, when clicking
I am creating one application with jquery.mobile-1.0a4.1 release. I have a page which is
I have a link that create a dialog with jquery mobile in my page
I'm developing a mobile website using the jQuery Mobile library. I have a header,
I have the code below loading into a jquery mobile page data-role. Two strange
Is it possible to have a textbox and a button horizontally using JQuery Mobile?
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody

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.