Questions tagged [jquery-mobile-popup]

jQuery Mobile add the support for handling popups. The popup consists of two elements: the screen, which is a transparent or translucent element that covers the entire document, and the container, which is the popup itself. If your original element had an id attribute, the screen and the container will each receive an id attribute based on it.

To create a popup, add the data-role="popup" attribute to a div with the popup contents, place it inside data-role="page" div and make sure the latter is the direct parent of popup div. Then create a link with the href set to the id of the popup div, and add the attribute data-rel="popup" to tell the framework to open the popup when the link is tapped. This is a similar markup pattern to the dialog widget.

<a href="#popupBasic" data-rel="popup">Open Popup</a>

<div data-role="popup" id="popupBasic">
  <p>This is a completely basic popup, no options set.<p>
</div>

The popup consists of two elements: the screen, which is a transparent or translucent element that covers the entire document, and the container, which is the popup itself. If your original element had an id attribute, the screen and the container will each receive an id attribute based on it. The screen's id will be suffixed with "-screen", and the container's id will be suffixed with "-popup" (in the above example, id="popupBasic-screen" and id="popupBasic-popup", respectively).

The framework adds a small amount of margin to text elements, but it's really just a container with rounded corners and a shadow which serves as a blank slate for your designs.

For more details and examples, check official demo page and go through Popup widget API thoroughly.

79 questions
1
vote
1 answer

JqueryMobile 1.4.0 pass parameter to popup

I'm pretty new to jQuery Mobile and PHP and I'm having an issue where I have a PHP while loop while ( $row = sasql_fetch_array ( $idresult ) ) { echo "
  • Janey
    • 1,260
    • 3
    • 17
    • 39
  • 1
    vote
    0 answers

    List view inside a popup not scrolling on a mobile device in jQuery mobile 1.4.0

    I have the following popup which contains a list view , the problem is that when i have tested it on an android mobile device i cant scroll the list inside the popup to show the remaining list elements , but it works perfect on the jsfiddle …
    1
    vote
    0 answers

    jQuery Callback - Execute Function after loading Modal

    I have a hybrid mobile app using jQuery Mobile. At one point, in iOS, it loads a Modal window which contains a drop down box. I have a JavaScript function, in another file, that populates the drop down with different options, depending on a…
    Diomedes
    • 634
    • 11
    • 24
    1
    vote
    1 answer

    jquery mobile popup widget doesn't move when device's (android) keyboard is active

    I have a jquery-mobile (1.3.1) + phonegap app in which I am using a pop-up widget (This app is for Android-any vresion). This popup is for sign-in (it has Username, Password and a "Sign-in" button. Whenever I click on a text-field (either Username…
    Lohith Korupolu
    • 1,066
    • 1
    • 18
    • 52
    1
    vote
    1 answer

    dynamic dropdown creation using jquery mobile

    The following code not working when i create the dropdownlist using jquery mobile $(function(){ $('#hello').append('