nanogallery2 icon indicating copy to clipboard operation
nanogallery2 copied to clipboard

Lightbox standalone not working with Ajax loaded partial views.

Open Vdm88 opened this issue 1 year ago • 2 comments

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.

Vdm88 avatar Apr 06 '23 16:04 Vdm88

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

Andrew-web-coder avatar Apr 12 '23 16:04 Andrew-web-coder

Fancybox5 is paid

Vdm88 avatar Apr 13 '23 06:04 Vdm88