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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:20:12+00:00 2026-06-13T04:20:12+00:00

In jQuery Mobile I have several chained dialog boxes sliding in/out one after another

  • 0

In jQuery Mobile I have several chained dialog boxes sliding in/out one after another when inputs were made and ‘next’-buttons were clicked. But any time the close-button inside the header of the dialog box is clicked I want to get back to the initial page where the first dialog box was triggered. Normally the close button in each dialog box leads back to the page/box it was triggered from. But in my app I need to override them all to get back to the first page!

My code:

<div class="ui-block-b">
    <a data-role="button" data-theme="b" data-icon="arrow-r" data-iconpos="right" 
        data-transition="slide" href="nextpage.html" data-rel="dialog">
        next
    </a>
</div>

thnx!

edit: The docs say

CHAINING DIALOGS: “Please note: If a dialog opens another dialog (chaining), closing the
last one with a link of type data-rel=”back” will always navigate to
the previous dialog until the root-page of type data-role=”page” is
reached. This guarantees a consistent navigation between dialogs.”
[http://jquerymobile.com/demos/1.2.0-beta.1/docs/pages/page-dialogs.html]

  • 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-13T04:20:13+00:00Added an answer on June 13, 2026 at 4:20 am

    You can override the close method defined for the dialogs $.mobile.dialog.prototype.close:

    <script>
    
        $.mobile.dialog.prototype.close = function(){
    
            console.log("close");
    
            // DO SOMETHING HERE - EX: REDIRECTING TO MAIN PAGE
            $.mobile.changePage("index.html");
        };
    
        $(function() {
            console.log("document loaded");         
        });
    
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mobile website made in jQuery Mobile and I would like to
I have a JQuery Mobile application and I seem to have several locations in
I am using jQuery Mobile and have few pages in one HTML page. When
I have a single page jQuery mobile application that consists of several list views
I have made a set of HTML5 pages using Jquery mobile. While developing I
I have a link that create a dialog with jquery mobile in my page
I'm using jquery mobile and have a form with a submit button. Unfortunately, after
I've recently been learning jQuery Mobile but have a hard time remembering all the
I have a mobile site running with jQuery Mobile. I want to have standard
I'm building my first jquery mobile site and have run into a problem. When

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.