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
0
votes
1 answer

Jquery Mobile AJAX Popup appears at bottom of page on first open

I'm using jqm 1.4.2 and have a number of popups within my app which I am loading via an ajax call. I'm having an issue where the first time I click on a popup, it appears at the bottom of the screen - but ONLY when opening a popup via ajax. If I…
Janey
  • 1,260
  • 3
  • 17
  • 39
0
votes
1 answer

Popup triggers class ui-popup-hidden endlessly

I'm experiencing an issue with the jQuery Mobile Popup triggering itself to hide/unhide itself once opened continuously. It has quite an affect on the CPU. The popup text content is being added dynamically. To replicate issue visit the following…
devlondoner
  • 127
  • 2
  • 11
0
votes
1 answer

jquery mobile clear the DOM on click

I am creating a small jquery mobile webapp and I've come across an issue with using data-dom-cache='true'. I have this set as the users will do a search and a data-mode='columntoggle' table is loaded with a "select columns" button for responsive…
Janey
  • 1,260
  • 3
  • 17
  • 39
0
votes
1 answer

How to propagate jQuery Mobile events when a popup is open?

It seems like no events are being propagated to the content div while a popup is open. I'm using the popup as an alert message and I'd like to keep it open while the user performs other tasks on the page. Live…
0
votes
1 answer

popup working properly in jquery mobile 1.4.0?

I am creating a popup when one process is complete and before changing the page popup not showing.My code is
Ben10
  • 3,221
  • 2
  • 34
  • 61
0
votes
0 answers

Trying to show popup on pageshow, but it auto closes

I have a jQuery mobile page with a popup that needs to be shown on page load. For some reason the popup shows and closes straightaway. I'm using chrome on desktop. Tested on chrome on android, shows the same thing. This is a test page which shows…
user1094553
  • 786
  • 5
  • 15
0
votes
1 answer

JQuery Mobile Delete confirmation Dialog

I am new to jquery and really struggling for setting up confirmation dialog box for deleting certain items. I am able to view the popup but when I click DELETE on the popup its not redirecting or loading the new page but staying on same page. I am…
0
votes
1 answer

jquery dialog not coming up on pageload

I want to show the dialog after the pageload .
sree
  • 868
  • 2
  • 12
  • 35
0
votes
0 answers

refresh div in jquerymobile v1.3.2 ,phonegap v2.9.0

I'm working in jquerymobile v1.3.2,Phonegap 2.9.0 i am getting photos from ajax webservice which is working fine. Now want to implement lightbox I get photos from ajax and concatenate in div. Here is my code. I have used this photo lightbox from…
skhurams
  • 2,133
  • 7
  • 45
  • 82
0
votes
0 answers

The popup doesn't open once closed, but the audio plays in the background

I am trying to show a video in a popup, which pops up when clicked on an image. When I try to close the popup the 'X-button' on the top-right corner the popup closes and doesn't open again but the audio plays in the background. The code goes as…
0
votes
0 answers

.Doing a super.requestRectangleOnScreen when i click on inputtext in popup

I had created an input for phone in which when a user click on the input-text a popup window will open which has a for in put text to enter like country code,area code , local no and extension if available. Know the issue is when a user click on the…
Neerav Shah
  • 713
  • 5
  • 18
  • 39
0
votes
1 answer

How do I create a popup Jquery-mobile window with multiple pages that can be swiped through

I am trying to create a popup control area on a tablet interface, and am an experienced programmer, just have never done web based programming before in any serious way. I have a black bar (will eventually be status information) that when tapped…
0
votes
0 answers

Create a fullscreen mobile popup

I am trying to achieve a full screen popup with a close button. 1) I have tried this
Pavan Garre
  • 2,661
  • 1
  • 18
  • 19
0
votes
1 answer

jquery mobile popup shows a black background on device

I'm using jquery mobile & phonegap to create an app. jqm version 1.3.1, currently in testing my app with an android device i'v created a simple popup (code taken from jqm web site) and the popup shows correctly on my pc (page gets opacity) but on…
0
votes
1 answer

Maps marker link to JQueryMobile dialog

Here's my question: i would like that when you click on the marker you dont see the infowindow (i know how to do it) but you see another page shown as a dialog (http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/page-dialogs.html) or a popup…