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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:16:00+00:00 2026-06-05T23:16:00+00:00

Is it possible to create a jQuery Mobile dialog using inline content within the

  • 0

Is it possible to create a jQuery Mobile dialog using inline content within the same page?

For example:

<div data-role="page">
    <div data-role="content">

        <!-- this causes the entire current page to load as the dialog -->
        <a href="#modal" data-rel="dialog">Open Dialog<a> 

        <div id="modal" style="display: none">
            Hello World
        </div>

    </div>
</div>

A typical dialog requires that the href of the linking object be that of a separate “page”, or one that sits along side the current page:

<div data-role="page">
    <div data-role="content">
        <a href="#modal" data-rel="dialog">Open Dialog<a>
    </div>
</div>
<div data-role="page" id="modal">
    <div data-role="content">
        Hello World
    </div>
</div>

However, my template structure prohibits me from separating the link from the modal content. If possible, I would like to keep things modularized into a single pluggable control. Creating an entirely new external page for the modal content would be cumbersome using my current CMS framework (Sitecore).

  • 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-05T23:16:02+00:00Added an answer on June 5, 2026 at 11:16 pm

    Not able to find a solid, cross-platform out of the box solution.
    But Jquery Mobile 1.2 is having ‘popup’ role, so any div can easily displayed as popup. http://jquerymobile.com/test/docs/pages/popup/index.html

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

Sidebar

Related Questions

Is it possible to create a scrollable nested div on a jQuery mobile site?
I have a link that create a dialog with jquery mobile in my page
Is it possible to create the same window-resize like jsfiddle with jQuery?
i'm trying to create a modal dialog with jquery mobile rc2. This is my
I'm using jQuery Mobile to create a mobile (obviously) website. I have a list
I was wondering if it was possible to create a cookie (using jquery.cookie) which
I'm trying to create a mobile version of my views using jQuery Mobile, but
Is possible to create category in the drop down menu using jquery? so it
Is it somehow possible to create something like a masterpage (asp.net) in jQuery Mobile?
Possible Duplicate: jquery mobile popup not working? i am trying to create a simple

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.