emblewembl
Programmer
I'm building a photo viewer website and i've got a page loading with thumbnails showing for each image in a specified folder. If you click on a thumbnail you see the picture in full size. I want to add next and back buttons to the page so the user can just keep clicking the next button to see each photo in turn displayed at full size, rather than having to click on each thumbnail. I need the 'loadNextImage' function to run in javascript so that the whole page doesn't have to reload but i need to pass it an array of the images so it knows at any given time which image is currently loaded at full size and therefore which image to load next. The images will have random names so I can't rely on the next image number being 1 greater than the current one!
How do i pass the array of image references from my asp.net code to a javascript function or variable?
i love chocolate
How do i pass the array of image references from my asp.net code to a javascript function or variable?
i love chocolate