redcokehome / jquery-modalbox-plugin

Automatically exported from code.google.com/p/jquery-modalbox-plugin
0 stars 0 forks source link

Possibility to open 2 Modalboxex above each other #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

is it possible to open boxes above each other?

I tried to set different IDs for a 2nd Box, which should open above the already 
opened Modalbox with this onClick-Function:

 $('a.test').click(function(event) {

            event.preventDefault();

            jQuery.fn.modalBox({

                setModalboxContainer: '#modalBox2',
                setModalboxBodyContainer: '#modalBox2Body',
                setFaderLayer: '#modalBox2FaderLayer',
                setAjaxLoader: '#modalBox2AjaxLoader',
                setModalboxCloseButtonContainer: '#modalBox2CloseButton',
                setNameOfPreCacheContainer: '#modalbox2PreCacheContainer',

            directCall: {
                data : '<div class="testclass"><p>test</p></div>'
            }
            });
        });
I changed the corresponding CSS already but nothing happens. Even no error 
occured. 

Is there an easy workaround to have more than one independent boxes?

Thanks in advance!

Original issue reported on code.google.com by rawb...@gmail.com on 18 Nov 2010 at 3:26

GoogleCodeExporter commented 8 years ago
Currently multiple indicators of modal boxes are not supported. This is 
contrary to the spirit of a modal window:

http://en.wikipedia.org/wiki/Modal_window

Regards,
Steffen

Original comment by steffen....@googlemail.com on 24 Nov 2010 at 7:27