How to load a dynamic gallery of images in a light box

we want to open a light box with one image visible and then scroll through the images based on data coming from an array from a server connect. we do not have all the images loaded on the page itself.

imagine a ecommerce web page with thumbnails of the product images and one large product image. on clicking of this product image light box opens up. now we want to scroll through this light box with other full size images - the URL of which are in an array in the server connect.

any ideas please?

Community Page
Last updated: