# Structure xml gallery

**URL:** <https://forum.kirupa.com/t/structure-xml-gallery/264942>\
**Category:** Uncategorized\
**Created:** [July 2, 2008, 10:55am UTC](https://forum.kirupa.com/t/structure-xml-gallery/264942 "2008-07-02T10:55:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pensamente](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pensamente/32/1208_2.png) [@pensamente](https://forum.kirupa.com/u/pensamente)\
**Post date:** [July 2, 2008, 10:55am UTC](https://forum.kirupa.com/t/structure-xml-gallery/264942/1 "2008-07-02T10:55:18Z")

</div>

hi,

i’m starting to build a image gallery, a simple one:

XML

- titles to sets of images  
-\>thumbnails  
-\>images

1 - I want the xml to load and display the titles for the different sets of images  
2 - after the user select one set to see the thumbnails of that gallery will display  
2.1 - at same time the first image of that set will load.

3 - after this, each image will only load if the user selects it’s respective thumbnail.

Of course that if the user clicks in a image for the first time the image have to load first, **my doubt is when you go back and select a image that have already been load should the code have a exception for that, telling something like _if image loaded then display else load_…**

oldtime projects, made in as2 I think I never thought much about this, just made it loading everytime you click a image… and sometimes 😛 the browser would display it without loading it again… I believe it had something to do with cache. If that’s true why bother coding unnecessary options?.. well I really dunno about this things, some help would be great.

Thanks
