-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Popups can not be defined outside the page they're used in. #4565
Comments
I'm under the impression that @gabrielschulhof is either working on this or supports it already. Hopefully he can comment here. |
This functionality is certainly something we are going to look into. For multiple reasons that won't be right now so I am going to close this issue as a feature request and I added it here https://github.com/jquery/jquery-mobile/wiki/Feature-Requests |
@AlexHowansky meanwhile check https://github.com/serbanghita/jQM-dynamic-popup , it's a small plugin I wrote that wraps around @uGoMobi i'm glad this request was added to the feature requests! |
Will be good to have wrapper around
|
Opening so we can work on this |
Changed milestone from 1.3.0 to 1.4.0 according to the roadmap. |
Closing as fixed by commit a8bc1c3 |
@uGoMobi: I'm not finding any documentation or examples on creating popups outside pages. Will try if it works and provide an example. |
@frequent maybe the documentation I wrote on https://github.com/serbanghita/jQM-dynamic-popup helps. |
@serbanghita - thx but this works as of JQM 1.4 and I'm happifly using it. |
@frequent nice, this is why I like jQuery Mobile |
im confused was this solved? i just tried in JQM 1.4.5 and if i have popups outside of page it doesnt work. was the https://github.com/serbanghita/jQM-dynamic-popup added to JQM officially? |
just want to report that this does indeed work well for JQM 1.4.5 when using a multipage template and even as a MultiHTML...https://stackoverflow.com/questions/30339216/how-to-get-popups-to-be-defined-outside-the-page-theyre-used-in |
I'm not sure if this is a bug or the intended behavior, but at the very least it's inconsistent with the way dialogs work and rather limiting in the way it can be used. I'm hoping somebody can chime in and let me know what they think about this issue.
When building dialogs, I can put the dialog DIV outside the page DIV that uses it:
This allows me to pre-load all my static dialogs into a single HTML page, and then pull content DIVs which use those dialogs via AJAX. However, this same technique doesn't work with popups. The following code doesn't display the popup when the button is clicked:
In order to get the popup to render, I need to put its DIV inside the page DIV that it will be rendered on:
This has two implications:
Here are some fiddles for testing:
Dialog defined outside the page - http://jsbin.com/oravud
Popup defined outside the page - http://jsbin.com/axaqit
Popup defined inside the page - http://jsbin.com/uqojic
The text was updated successfully, but these errors were encountered: