简体   繁体   English

如何从另一个弹出窗口中的链接调用弹出窗口。 jQuery Mobile

[英]How to call a popup from a link inside another popup. Jquery Mobile

I have a popup like this: 我有一个这样的popup

<div data-role="popup" id="popup1">
    <a href="#pop" data-rel="popup">Link to open popup</a>     
</div>

And the div for the popup with id="pop" is: popup with id="pop"div为:

<div data-role="popup" id="pop">
    <!-- Content Here -->
</div>

So how do I open the popup with id="popup" from a link which is already inside a popup. 那么如何从弹出窗口内部的链接中open the popup with id="popup"窗口。

I tried the regular way. 我尝试了常规方式。 Did not work! 不工作!

$("#popup1").popup('close');
$("#pop").popup('open');

Even the above did not work! 甚至以上都没有用!

JQM Popups cannot be chained. JQM弹出窗口无法链接。 You have to fire the second after a timer delay. 您必须在计时器延迟后触发第二秒。

See the JQM documentation and search for "chain": http://api.jquerymobile.com/popup/ 请参阅JQM文档并搜索“链”: http : //api.jquerymobile.com/popup/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 jQuery弹出窗口。(“打开”)不起作用 - JQuery popup.(“open”) not working 硒问题,打开弹出窗口时关闭主窗口。 如何从此链接获取href? - Problem with selenium, closing the main window when opening the popup. How get href from this link? jQuery qtip插件:旧弹出窗口仍出现在新弹出窗口之后。 怎么解决呢? - jQuery qtip plugin: old popup still appears behind new popup. How to solve it? 子框架打开一个弹出窗口。 如何检查是否从父级打开了该弹出窗口? - Child frame opens a popup. How do I check if that popup is opened from the parent? Jquery Dailog没有为Confirmation PopUp返回给定值的用户。 - Jquery Dailog not returning the user given value for Confirmation PopUp. 在带有弹出窗口的循环内创建一个按钮-jQuery Mobile - Create a Button inside a loop with a popup - jQuery Mobile 关闭弹出窗口并导航到jQuery Mobile中的另一个页面 - Close popup and navigate to another page in jQuery Mobile Angular Modal Service如何在模式弹出窗口中编写函数。 Orelse如何在Modal Pop Up内部传递新的控制器功能 - Angular Modal Service how to write the function inside modal popup. Orelse How to pass a new controller function inside Modal Pop Up jQuery Mobile弹出模糊 - jQuery Mobile popup blurred jQuery移动弹出维度 - jQuery mobile popup dimension
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM