I use jQuery colorbox plugin when displaying images from gallery. So, when i have a big amount of images,I don’t want to load all of the images, I want to make ajax request and retrieve only needed image when the user clicks ‘next’ button, for instance.
Ones more.User clicks next and after I make ajax request and retrieve image.
So, how can i implement this?
I use jQuery colorbox plugin when displaying images from gallery. So, when i have
Share
You don’t need AJAX, as long as you know the URL of the images.
I’ll let you add a ‘previous’ button, and some error checking (make sure you’ve not gone off the end of the array, etc.).