dongnue2071 2015-12-24 03:34
浏览 492

使用Magnific Popup通过一些用户操作调用多个弹出窗口

I already can implemented the magnific popup and works perfectly.

But now, I want to use it more. Lets say I have a button and show the first popup. Here is the picture:

here is the first popup, I already added <code>closeOnBgClick::false</code> to prevent the popup close.

Lets say I choose "I don't know my password", it must show the second pop up. Here is the picture:

I have to input my email so the system can send the password to my email

If I choose back, I can back to the first popup. If I choose send, it will show the last popup. Here is the picture.

no caption

All I done so far is call the first popup, using AJAX. At the troublesignin.php I also do the same. The result is not showing the popup like I want, but redirect to the URL.

<script src="js/jquery.magnific-popup.min.js"></script>
    <script type="text/javascript">

        $(document).ready(function() {

            $('.simple-ajax-popup').magnificPopup({
                type: 'ajax',
                closeOnBgClick:false
            });

        });
    </script>
<a href="troublesignin.php" class="trouble simple-ajax-popup">TROUBLE SIGNING IN?</a>

Any clue or solution? Thanks.

Update: This is the main screen.

demonstration

</div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog