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

how to make simpleLightBox work from MagnificPopup loaded via Ajax #306

Open
avidh opened this issue Mar 3, 2023 · 0 comments
Open

how to make simpleLightBox work from MagnificPopup loaded via Ajax #306

avidh opened this issue Mar 3, 2023 · 0 comments

Comments

@avidh
Copy link

avidh commented Mar 3, 2023

Hi,

I've been scratching my head over this for few days now and I couldn't find the answer. Maybe it's not possible to achieve what I want to do but I thought it was worth asking before I finally give up.

I'm loading MagnificPopup via Ajax and that ajax content has a image thumb nail, which I would like to open using SimpleLightBox but I can't figure out how to do this. I understand that my main parent page is already initialized with SimpleLightBox library and it does not know about the new content loaded from ajax, which is not even full DOM object but I was wondering if this is even possible... Thank you for your advise in advance.

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

No branches or pull requests

2 participants