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

Lightbox standalone not working with Ajax loaded partial views. #395

Open
Vdm88 opened this issue Apr 6, 2023 · 2 comments
Open

Lightbox standalone not working with Ajax loaded partial views. #395

Vdm88 opened this issue Apr 6, 2023 · 2 comments

Comments

@Vdm88
Copy link

Vdm88 commented Apr 6, 2023

Hello,
A bit complicated to replicate this.
I have a partial view loaded with Ajax inside a page. If i load the js inside the partial view the lightbox works perfect, if i load the js in the big page ( cause i dont want to load the js on each partial view ) is not working anymore.
I suspect that loading the html
after the load of the js is the issue.
i only intend to use the lightbox since the images are already displayed in a swiper.

@Andrew-web-coder
Copy link

Maybe try an alternative like Fancybox5, it works with any content, including what is created later.

@Vdm88
Copy link
Author

Vdm88 commented Apr 13, 2023

Fancybox5 is paid

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