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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:53:17+00:00 2026-05-30T01:53:17+00:00

I need to click on a button in header then overlay will show like

  • 0

I need to click on a button in header then overlay will show like Sencha Touch:

Example image in Sencha touch

how to do this overlay with jQueryMobile in the same page

JsFiddle Example:
http://jsfiddle.net/ReMZ6/184/

  • 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-30T01:53:18+00:00Added an answer on May 30, 2026 at 1:53 am

    Currently this overlay support for dialog is not available in jquery mobile.But it is expected to come in future versions.They have put up a demo of how that feature is going to be in this url – http://filamentgroup.com/tests/popup/docs/pages/popup/index.html

    For the time being you can use the following code to achieve something similar to what you need:

    <!DOCTYPE html> 
    <html> 
        <head> 
        <title>Page Title</title> 
    
        <meta name="viewport" content="width=device-width, initial-scale=1"> 
    
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
        <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
        <script>
            $("#show-overlay").live("click",function(){
                $(".overlay").toggle(50);
            });
            $(".ui-mobile-viewport").live("click",function(event){
                var target = event.target;
                //Close the overlay if you have clicked on anywhere in body except the overlay itself and the button in header.
                //If the check for button in this if is skipped,you will not be able to show the overlay.Clicking on button in header to close is //handled by previous event handler.
                if($('#show-overlay').find(target).length==0 && $('.overlay').find(target).length==0) {
                    $(".overlay").hide(50);
                }
    
            });
        </script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
        <style>
            .overlay{
                width:150px;
                position:absolute;
                top:45px;
                left:5px;
                border-radius:5px;
                background:#25374c;
                z-index:1501;
                padding:3px 5px 5px 5px;
            }
            .overlay-header{
                text-align:center;
                color:#fff;
                margin-bottom:3px;
            }
        </style>
    </head> 
    <body> 
    
    <div id="home" data-role="page">
      <div data-role="header">
        <h1>Title</h1>
        <a name="submit" value="submit-value" id="show-overlay" data-icon="gear">OverLay</a>
      </div>
      <div data-role="content">
            <ul id='company_list' data-role='listview' data-inset='false'> 
                <li>item 1</li>    
                <li>item 2</li>    
                <li>item 3</li>    
                <li>item 4</li>    
            </ul>
      </div>
      <div class="overlay" style="display:none">
        <div class="overlay-header">
            Title
        </div>
        <div class="overlay-content">
        <ul id='tas_list' data-role='listview' data-theme="e">
                <li>Overlay item 1</li>
                <li>Overlay item 2</li>
                <li>Overlay item 3</li>
                <li>Overlay item 4</li>
            </ul>
        </div>
    </div>
    </div>
    
    
    
    </body>
    </html>
    

    A demo here – http://jsfiddle.net/K3Tpu/

    This is just a rough draft only and there might be some issues.

    Let me know if that helps.

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

Sidebar

Related Questions

In a web page button click event we need to export 2,00,000 to 5,00,000
I have a hidden button on a form that I need to click in
I have added some dynamic textboxes upon a button click. I need the values
I need a function that a user can just click a flash app button
I need to know when I click on an element if this element has
I have a page with a button that when I click, it retrieves data
I need to go to http://butlercountyclerk.org/bcc-11112005/ForeclosureSearch.aspx , enter data in the fields, then click
i want to do when user go to this page the javascript form will
I need to show a Master/Child data in a page and I have used
I need to put on a form 3 buttons and when I click on

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.