开发者

Can I put one modal dialog inside another one? Two modals?

I was asked to implement a modal fancybox that launches inside of another modal fancybox without closing the first fancybox. This just feels wrong. Is it even technically possib开发者_高级运维le?


It would appear it's not possible. I just tested opening one Fancybox modal from within another Fancybox modal and it simply closes the first and replaces it with the second.


Well if you just have a link to another modal box then yes it definitely is possible. But if I were you I would close the first one after the second were opened. They're already annoying as it is, and having multiple modal boxes open would bug me out.


You can call the following code from the first popup window to open the second popup over the first with fancybox. But only problem is that it occupies only the the content space occupied by the first fancybox. Not the entire page as the first popup.

$.fancybox.open(
        {
            href: '/index.html',
            autoCenter: true,
            closeBtn: true,
            padding: 18,
            type: 'iframe'
        });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜