iv-viewer icon indicating copy to clipboard operation
iv-viewer copied to clipboard

jquery.min.js:2 Uncaught TypeError: Cannot read property '_imageViewer' of undefined

Open mjlabe opened this issue 4 years ago • 2 comments

jquery.min.js:2 Uncaught TypeError: Cannot read property '_imageViewer' of undefined at ImageViewer._findContainerAndImageSrc (iv-viewer.js:640)

    <script>
        $(function () {
            var viewer = new ImageViewer();
            $('.gallery-items').click(function () {
                var imgSrc = this.src,
                    highResolutionImage = $(this).data('high-res-img');

                viewer.show(imgSrc, highResolutionImage);
            });
        });
    </script>

mjlabe avatar Apr 27 '20 00:04 mjlabe

I have the same issue, did you manage to solve it?

marscrusader avatar May 15 '20 04:05 marscrusader

No, I just built my own simple viewer.

mjlabe avatar May 15 '20 11:05 mjlabe