Open ccambron opened 12 years ago
Ok, not to open a new issue, but it's basically what I need too, only it manifests a bit differently in my project.
I have a div which is called with lightbox_me and when it opens, it has a button named "Next" and when user clicks on "Next", another lightbox should open instead of the one there. I have attached a new lightbox_me launch to the "Next" button and this almost works, except that I can see the previous lightbox loaded behind it.
Is it the case that we should be able to run multiple instances simultaneously?
I have a situation where I use lightbox_me on a div, say Div1 - so far so good. The lightbox and close button functionality both work fine.
Inside of that div, Div1, that is now modal, is a button that launches another div, say Div2, using lightbox_me also. So, there is the first modal window, Div1, and now the modal window, Div2, over that.
Both lightbox_me functions on both divs work fine independently, but when I call them in succession like this, the topmost one, Div2, will close, but the original one, Div 1, will not. I can interact with other elements in this div, but the close element and clicking the overlay to close are both unresponsive.
So, I have not posted any code here because it is a pretty big project and I am not asking for it to be solved here, I am just asking if it is theoretically fine to run them concurrently. Are there clashes with namespaces or variables or anything that make this problematic?