Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Concurrent Instances #40

Open
ccambron opened this issue May 8, 2012 · 1 comment
Open

Multiple Concurrent Instances #40

ccambron opened this issue May 8, 2012 · 1 comment

Comments

@ccambron
Copy link

ccambron commented May 8, 2012

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?

@hey-stefan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants