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
17
votes
3 answers

jQuery Mobile best way to create pop up and content dynamically

I have the following code creating a pop up using jQuery mobile. The pop up is created and a form is created and appended to the popup along with two buttons. This code does work but I am wondering if there is a better way to achieve my intended…
user1812741
  • 311
  • 2
  • 6
  • 14
7
votes
1 answer

Scroll to top of jQuery-Textarea

I'm trying to add a "change log" to my jQuery mobile Application. In case of an error, the user should have the capability, to see what went wrong. Therefor I've implemented a popup, with a textarea (see code below)
Daniel Rausch
  • 215
  • 4
  • 12
6
votes
2 answers

Popups fail in JQueryMobile 1.3.2 after update chrome version 43.0.2357.65 m

Has the latest chrome version "43.0.2357.65 m" broken JQueryMobile 1.3.2 for anyone else? When I click a popup now it goes to the top of the page and the scroll bar dissapears. It was fine in previous version. The problem is affecting my applicaiton…
6
votes
1 answer

jquery mobile - custom select menu in a popup

Please find the below fiddle http://jsfiddle.net/yesvin/Xj8p8/
5
votes
0 answers

How to prevent auto scrolling when keyboard appears in jquery mobile popup-dialog

I'm creating an app in which I want a popup dialog box with some text field to be entered so I took an example from the jquery mobile site and just inserted 4 input text to insert landline no with country and area code. When I run it on the…
Neerav Shah
  • 713
  • 5
  • 18
  • 39
4
votes
5 answers

Jquery Mobile Popup not centered on first click

I have a confusing problem with centering a jQuery Mobile popup. When I click it the first time it is not centered and appears in the corner of my page. After closing it and opening it again it is suddenly centered. This is my…
J-H
  • 1,795
  • 6
  • 22
  • 41
4
votes
1 answer

How to disable scrolling of list view when popup screen Display

I have a pop up screen. After clicking the Button, I want to show my popup screen. But problem is that, whenever user open the pop screen, it displays But again user able to press button. I need to disable button (I do this).But user also able to…
user2484319
4
votes
1 answer

jqueryMobile set focus on input field in popup

In my jquery mobile application I would like to automatical set the focus on an input field after a popup is opened. The input field is in the popup as below. The focus is correctly set at the beginning but lost after the popup is fully lowded. …
user1584028
  • 69
  • 1
  • 1
  • 4
3
votes
2 answers

dynamically creating jquery mobile list view within a jquery mobile popup

This has been driving me insane so hopefully someone can help me out :-D I am trying to create a jquery mobile popup and within the popup I want to dynamically create a jQuery mobile listview. However I keep getting the following error…
3
votes
2 answers

JQuery Mobile popup with history=false autocloses

I'm trying to show a popup but the popup disappears automatically, without the history=false the popup stays visible but then on closing the popup the browser back action is triggered
2
votes
0 answers

Why does the pagecontainer load event not work?

I have a page on my site with a popup div:
Close

Oops! Could not…

Jim Fulton
  • 21
  • 1
2
votes
1 answer

jQuery mobile popup transparent purple color box issue with Android app

I am working on one android app using jQuery mobile and phonegap. I have used jQuery mobile popup to show popup in app. Issue is when I opens popup then it is highlighted by transparent purple box which I don't want. How to remove this transparent…
shuklendu
  • 475
  • 1
  • 5
  • 8
2
votes
1 answer

SelectMenu Widget data-native-menu attribute when in popup

When I use this setting I have one in a form in a dialog, and one in a form that is in a popup. The dropdowns look different. When data-native-menu="false" the dropdown in the dialog appears in another dialog, which actually looks quite nice. I…
matthewbaskey
  • 1,027
  • 2
  • 17
  • 40
2
votes
3 answers

JQuery Mobile seeing black overlay blocks on Android

I currently created a sample app built using JQueryMobile and Phonegap. Its a simple app, nothing special and it is intended to run on the Android platform, both for Mobile and Tablets. I have a page on the app which displays a popup dialog box,…
2
votes
1 answer

Uncaught TypeError: Object [object Object] has no method 'popup'

I have been trying to close the jquery popup using $('#partsPopup').popup("close"); But it gave me the no method popup error. This is the order of scripts which i have followed. Please help me. Thanks
user3393032
  • 71
  • 1
  • 10
1
2 3 4 5 6