Click to See Complete Forum and Search --> : Help with Spry:Choose


hedgehog001
09-17-2008, 01:16 PM
I'm trying to use a Spry:Choose function to set up several selections from an XML document on my page.

Everything appears to be fine with it...except for the fact that the only record I can pull up is the first in the dataset.

If I attempt to pull up any records beyond "ds_RowNumberPlus1" == 1, then nothing comes up.

The dataset does appear to be populated as when I run a spry:repeat on the same page, I can see all of the records. However, I only want to pull up select records, not all of them.

Here's my code:


<html>
<head>var uploadDS = new Spry.Data.XMLDataSet("../xml/galleries.xml", "galleries/recentgallery/video",{useCache:false,loadInterval:600000});
//-->
</script>
</head>
<body>
<div spry:region="uploadDS" spry:choose="spry:choose">
<div class="video" spry:when="'{uploadDS::ds_RowNumberPlus1}' == 1">
<h3><a href="index.php?ID={uploadDS::key}"><img class="preview" src="{uploadDS::thumbnailmedium}" alt="" /><br />{uploadDS::title}</a></h3> <p class="length">({uploadDS::vtaglength})</p><p class="description">{uploadDS::description}</p><p class="dateposted">Posted: {uploadDS::creationdate}<br/>{uploadDS::@id}</p>
</div>
</div>
</body>
</html>