View Full Version : jQuery Galleryview with XML

10-06-2010, 11:48 AM
Hi guys,

ben using jQuery GalleryView (1.4 and 2.1) to good effect but recently been asked to incorporate an XML file to build up the image list dynamically.

The XML contents will be in the format:


I can parse the XML:

<script type="text/javascript">
type: "GET",
url: "list-images.xml",
dataType: "xml",
success: parseXml


function parseXml(xml)
$("#photos").append('<li><img src="' + $(this).find("thumbnailUrl").text() + '" alt="'+$(this).find("caption").text()+'" />');

I have a UL tag ID photos like my standard implementation but I don't know where to include the relevant jQuery scripts or the Galleryview parameters:

panel_width: 480,
panel_height: 281,
frame_width: 40,
frame_height: 20,
pause_on_hover: true,
filmstrip_position: 'bottom',
frame_scale: 'crop',
show_panels: false

An example of how it should work (with images hard coded into the list) is: XML-Parse2 (http://www.ninetyonedegrees.com/Con/xml-parse2.html)

And the work in progress file is: XML-Parse (http://www.ninetyonedegrees.com/xml-parse.html)

Any help appreciated.