Spry:repeat Help

Help. I am new to Spry (although been doing JS for years) and
am attempting to get a handle on it. Here is my issue. I am
attempting a simple spry:repeat and all I am getting is my last
node.
Here is the XML chunk:
<?xml version="1.0" encoding="iso-8859-1"?>
<newHire>
<quickStart>
<quickLink linkUrl="#">Accessing Activant systems and
launching the VPN</quickLink>
<quickLink linkUrl="#">Navigating the Employee
Intranet</quickLink>
<quickLink linkUrl="#">Using the Employee Training
Portal</quickLink>
<quickLink linkUrl="#">Using CEP</quickLink>
</quickStart>
</newHire>
HTML...
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<title>Spry Test</title>
<script src="includes/xpath.js"
type="text/javascript"></script>
<script src="includes/SpryData.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--
// STEP 1: Create a data set.
var dsNewHireQuickStart = new
Spry.Data.XMLDataSet("newHire.xml", "newHire/quickStart");
//-->
</script>
</head>
<body>
<div id="quickLinks" spry:region="dsNewHireQuickStart">
<ul>
<li
spry:repeat="dsNewHireQuickStart">{quickLink}</li>
</ul>
</div>
</body>
</html>
Thoughts?
~Clay

Hi,
change your xml structure so that each quickLink tag is
wrapped in a quickStart tag, like this:
====================== new xml =================
<?xml version="1.0" encoding="iso-8859-1"?>
<newHire>
<quickStart>
<quickLink linkUrl="#">Accessing Activant systems and
launching the VPN</quickLink>
</quickStart>
<quickStart>
<quickLink linkUrl="#">Navigating the Employee
Intranet</quickLink>
</quickStart>
<quickStart>
<quickLink linkUrl="#">Using the Employee Training
Portal</quickLink>
</quickStart>
<quickStart>
<quickLink linkUrl="#">Using CEP</quickLink>
</quickStart>
</newHire>

Similar Messages

  • Help with Spry Rating Widget within a Spry Repeating Region

    My link  http://www.youthinkyougotitbad.com
    This is a long question, but it seems to me if answered somewhere it could help alot of people in the spry community creating comment boards as it uses three important spry widgets: rating, repeating, and tabbed panels. I am trying to use spry rating widget within a spry repeating region within a spry tabbed panel with xml. I was trying to go with the pulse light script (http://forums.adobe.com/message/3831721#3831721) but Gramps told me about the spry rating widget. But I have ran into a couple more problems. First, I couldnt find that much information on the forums or online about how to do the php page with the spry rating widget. None of these have any information on how to do it:
    http://labs.adobe.com/technologies/spry/articles/rating_overview/index .html
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/rating. html
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.ht ml
    And it seems that the official examples are so poor (or I am just ignorant, which def could be a possiblity) it shows
    to set the initial rating value from the server, but uses a static value of 4
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.html
    <span id="initialValue_dynamic" class="ratingContainer">
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>      
             <input id="spryrating1_val" type="text" name="spryrating1" value="4" readonly="readonly" />
             <span class="ratingRatedMsg sample">Thanks for your rating!</span>
    </span>
    <script>
    var initialValue_dynamic = new Spry.Widget.Rating("initialValue_dynamic", {ratingValueElement:'spryrating1_val'});
    </script>
    I finally found a site that has the php and mysql setup.
    http://www.pixelplant.ro/en/articles/article-detail/article/adobe-widgets-for-download.htm l
    But its not perfect. It has the same problem that I ran into with Pulse light, that you had to use php echo within the spry repeating region to set the initial value from the server:
    <span id="spryrating1" class="ratingContainer">
             <span class="ratingButton"></span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="<?php echo $row['average']?>"/>
            </span>
            <script type="text/javascript"
                var rating1 = new Spry.Widget.Rating("spryrating1", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id=spryrating1&val=@@ratingValue@@'});
            </script>
    So instead, I tried with three of my panels (www.youthinkyougotitbad.com) to get the average rating from xml by using the following queries:
    Recent
    Returns the blurts in most recent order along with average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC
    Wet Eyed
    Returns the blurts in highest ratings order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r Desc
    Dry Eyed
    Returns the blurts in lowest rating order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r
    These all return the correct xml in the correct order.And they return the average rating of each blurt which I can send to my page with xml.
    My first question is that I dont know how to configure the query on my fourth panel Empathized & Advised the same way because it already has a Group By for the Comment Id.
    SELECT `Comment`.id_Blurt, COUNT(*) as frequency, Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt, `Comment` WHERE Blurt.Id_blurt = `Comment`.id_Blurt GROUP BY `Comment`.id_Blurt ORDER BY COUNT(*) DESC";
    Not sure if you guys need more information to understand that all, if so just ask.
    So after I get my average value through xml to the first three panels, I set my spry repeating region up like this:
    (Blurt panel)
    <div spry:region="pv1" spry:repeatchildren="pv1">           
               <div class="blurtbox">
                <!--  most recent blurt tab-->
                <h3> "{pv1::Blurt}"</h3>
                <p> Blurted from {pv1::Location} at {pv1::Date}</p>
                <p>Empathize or Advise about {pv1::Name}'s Blurt #<a href="detailblurt.php?blurtid={pv1::Id_blurt}"> {pv1::Id_blurt}</a></a></p>
               <span id="{pv1::Id_blurt}" class="ratingContainer">
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingRatedMsg">Thank You! Your tears have been tallied.</span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="{pv1::average_r}"/>
            </span>
            <script type="text/javascript">
                // overview of available options and their values:
                // http://labs.adobe.com/technologies/spry/articles/rating_overview/index.html
                var rating1 = new Spry.Widget.Rating("{pv1::Id_blurt}", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id={pv1::Id_blurt}&val=@@ratingValue@@'});
            </script>
                 <br/>
               </div>
              </div>
    Ok, it registers the right vote in the database with the right blurt id each time. But I am having two problems so far:
    One, even though {pv1::average_r} returns the correct average through xml, it doesn't show the initial rating value for each of the repeating blurts. It seems to show the first one correct, and then just repeat that same value to the other ones that follow. I just dont understand since it can get the correct server value right after you vote (afterRating:'serverValue), that I can't manipulate spryrating.js in some way that I could just replace 'ratingValue' in ratingValueElement:'ratingValue' with something to give me the initial server value.
    Two: Is even more mysterious to me, if you play around with voting on the site, sometimes you are unable to vote on different blurts. Its weird. It seems like that the javascript is completely off just on those blurts. And sometimes its a whole row, sometimes none. But so far its never a problem on the first tabbed panel (Recent), only on the other three. As far as I know, the coding is exactly the same in each tab's repeating region except for the different xml input.
    And, now on the live server, sometimes the pics of tears used to voting dont show up until you click.
    Any help on those three questions (how to query the fourth panel, how to show the initial server value, and the glitches with voting) would be greatly appreciated!! I looked pretty hard on adobe forums and other sites, and didnt see much on how to really use the spry rating widget with php and xml.
    Thanks!!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Help With Spry Repeat Regions

    Hello everyone,
    I've recently started using Spry for a project I've been
    asked to work on and I've run in to a few issues since my spec
    changed on me today. So any help or advice anyone has is very much
    welcome as I'm very much out my comfort zone at the moment.
    Original Spec
    The idea originally was to have a drop down of roles which
    was created from the role tag within a xml file which I was able to
    do as you can see below in the attached code. Once the user had
    picked a role it would then
    ds2.setCurrentRowNumber(this.selectedIndex) and this would trigger
    the spry detail region I have to populate the fields I setup to get
    out of the xml the role, process and info.
    At the time I was told a role would only appear once in the
    file but this is now not the case :(
    My problem / New Spec
    Unfortunately with the xml now having a role more then once
    I've been asked to include a dynamic region which will display the
    process and info fields from other records which have this role
    name. Which is the bit I'm having problems with. I've been playing
    with creating a spry:repeat for each field and then using
    Spry:if="'{Role}'.search(^/myVar/) != -1; but I've had no luck
    getting a value into a variable and I'm lack of experience is
    running out of ideas.
    Hope I've made sense this is my first time using spry and
    JavaScript, so any help is greatly welcome.
    Thanks Nick.
    Example of the XML file - Please note this is very much a cut
    down version.

    tried changing the Region HTML table cell attributes to width:75pct, but this has no effect.Unsurprisingly. Use a valid CSS length specification.

  • Passing values to a function from spry:repeat

    Is this a viable solution?
    &lt;div spry:repeat=&quot;dsData&quot;&gt;
    &lt;script
    type=&quot;text/javascript&quot;&gt;addPin(&quot;{ds_RowNumberPlus1}&quot;,&quot;{site}&q uot;,&quot;{latitude}&quot;,&quot;{longitude}&quot;);&lt;/script&gt;
    &lt;/div&gt;

    quote:
    Originally posted by:
    victor.corey
    Hello V1 Fusion,
    Yes this did work. Thank you.
    For clarification, why add this to a spry:if in a hidden span
    versus just adding a javascript script block inside the
    spry:repeat. Both seem to work so far, but it seems your solution
    may help with error handling???
    Thanks,
    Victor Corey
    I know u could use functions in Spry if, im
    using them my self i should show a row based on cookie values ( the
    function checks if certain data is in a cookie, and if its there it
    shows the row).
    I was about to use the same technique for my own project my
    self to, so i thought it would be a good way to gather certain
    data, based on what u get returned from your own data set.
    And if u add a javascript block, each time u repeat it, it
    has to be created. its allot smaller size wise to create a little
    span (or u can even add it to the repeat self). That was basicly
    the reason why i suggested using a spry:if ^_^

  • Spry:repeat vs. Internet Explore 7.0

    Hi,
    I've made a very simple example with the Spry Framework -
    using the Spry.repeat
    The example works fine in Fixefox, but IE 7.0 won't display
    the data (no error message)
    HTML-file
    http://www.mg04.dk/clausreiss/test_xml.html
    XML-file
    http://www.mg04.dk/clausreiss/data/cafetownsend.xml
    What is wrong? -Please help me!
    jsnedker

    Everything works fine for me "as is" if I run it from my own
    http server. You might want to look into the Content-Type your
    server is sending for the XML file:
    Content-Length 681
    Content-Type application/octet-stream
    Last-Modified Tue, 08 Jan 2008 19:46:46 GMT
    Accept-Ranges bytes
    Etag "989c0342f52c81:18c96b"
    Server Microsoft-IIS/6.0
    X-Powered-By --InsPanel--
    http://www.inspanel.com,
    ASP.NET
    MicrosoftOfficeWebServer 5.0_Pub
    Date Tue, 08 Jan 2008 21:15:16 GMT
    The content-type should be either "text/xml" or
    "application/xml" for XML files.
    --== Kin ==--

  • Failed to retrieve data set for spry:repeat

    Help! I have read all the posts and fixes in the forums, but
    none seem to be helping me. I have moved this coding from my
    homepage to a sub-page. It previously worked fine on the homepage.
    The coding is the same, however I get the same error message each
    time. What am I missing?
    Below is my coding:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .style1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: small;
    .style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style3 {font-size: small}
    .style5 {color: #808000}
    -->
    </style>
    <script src="../../SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <script src="../../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    <script src="../../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var this_week_mon = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Monday']/items/item",{distinctOnLoad:true});
    var this_week_tue = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Tuesday']/items/item",{distinctOnLoad:true});
    var this_week_wed = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Wednesday']/items/item"{distinctOnLoad:true});
    var this_week_thu = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Thursday']/items/item",{distinctOnLoad:true});
    var this_week_fri = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Friday']/items/item",{distinctOnLoad:true});
    var this_week_sat = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Saturday']/items/item",{distinctOnLoad:true});
    var this_week_sun = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Sunday']/items/item",{distinctOnLoad:true});
    </script>
    </head>
    <body>
    <table>
    <tr>
    <td width="200"><span class="style14
    style1"><strong>Monday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_mon"><span
    spry:repeat="this_week_mon"><a href="{@href}"class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    <tr>
    <td width="200"><span class="style14
    style1"><strong>Tuesday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_tue"><span
    spry:repeat="this_week_tue"><a href="{@href}" class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    <tr>
    <td width="200"><span class="style14 style2
    style3"><strong>Wednesday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_wed"><span
    spry:repeat="this_week_wed"><a href="{@href}" class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    <tr>
    <td width="200"><span class="style14 style2
    style3"><strong>Thursday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_thu"><span
    spry:repeat="this_week_thu"><a href="{@href}" class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    <tr>
    <td width="200"><span class="style14 style2
    style3"><strong>Friday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_fri"><span
    spry:repeat="this_week_fri"><a href="{@href}" class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    <tr>
    <td width="200"><span class="style14 style2
    style3"><strong>Saturday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_sat"><span
    spry:repeat="this_week_sat"><a href="{@href}" class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    <tr>
    <td width="200"><span class="style14 style2
    style3"><strong>Sunday</strong></span></td>
    </tr>
    <tr valign="top">
    <td><div spry:region="this_week_sun"><span
    spry:repeat="this_week_sun"><a href="{@href}" class="style14
    style5 style3">{item}</a><br />
    </span></div></td>
    </tr>
    </table>
    </body>
    </html>
    the webpage is located at
    http://www.harvestfamchurch.org/about_this_week.html
    I have tried everything and can't seem to find the final
    tweak to make it work.
    Thanks.

    Its because you have a JavaScript error on your page.
    in your iframe..
    var this_week_wed = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Wednesday']/items/item"{distinctOnLoad:true});
    it needs a , after your "/items/item"
    var this_week_wed = new
    Spry.Data.XMLDataSet("../../Data/this_week2.xml",
    "thisweek/day[name='Wednesday']/items/item",{distinctOnLoad:true});

  • Failed to retrieve data set (dsLibrary) for spry:repeat

    I've tried to make this work with an external xml file,
    external html table, and finally this version with an internal html
    table for the data set source. The source table shows up in the
    browser along with the error message in a box with red header
    "Failed to retrieve data set (dsLibrary) for spry:repeat".
    I used one of the Adobe Samples as a base for my page. I've
    checked and recheck, and I can't find the source of my problem.
    Please help!!!
    My code is below and the url to the page is
    http://www.healthy-horse.info/articles.html
    Thanks!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry/">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>hh1</title>
    <link href="matt_layout.css" rel="stylesheet"
    type="text/css" />
    <link href="matt_style.css" rel="stylesheet"
    type="text/css" />
    <link rel="stylesheet" type="text/css"
    href="chromestyle.css" />
    <script type="text/javascript"
    src="SpryAssets/SpryHTMLDataSet.js"></script>
    <script type="text/javascript"
    src="SpryAssets/SpryData.js"></script>
    <script type="text/javascript">
    var dsLibrary = new Spry.Data.HTMLDataSet(null,
    "ArticleLibrary");
    </script>
    <style type="text/css">
    .style1 {color:black}
    .product {
    cursor: pointer;
    .hover {
    background-color: #A6C4E1;
    .selected {
    background-color: #D5C897;
    </style>
    </head>
    <body>
    <div id="masthead"><img class="title"
    src="images/articles_title.gif"/>
    <div class="headerinfo">Great informational articles
    that cover a wide variety of topics relating to
    <strong><em>Horse Health</em></strong> and
    <strong><em>Natural Horse
    Keeping</em></strong>. </div>
    </div>
    <!-- end masthead -->
    <div class="chromestyle" id="chromemenu">
    <ul>
    <li ><a href="default.html"
    >HOME</a></li>
    <li><a
    href="articles.html">ARTICLES</a></li>
    <li><a
    href="faqs.html">FAQ'S</a></li>
    <li><a
    href="links.html">LINKS</a></li>
    <li><a target="_blank" href="
    http://www.healthy-horse.info/forum">FORUM</a></li>
    <li><a href="mailto:[email protected]"
    >EMAIL</a></li>
    </ul>
    </div>
    <div id="wrapper">
    <table width="100%" border="0">
    <tr>
    <td width="30%" valign="top">
    <ul spry:region="dsLibrary"
    spry:repeatchildren="dsLibrary">
    <li class="product" spry:setrow="dsLibrary"
    spry:select="selected" spry:hover="hover">{category}</li>
    </ul>
    </td>
    <td width="70%" valign="top">
    <div spry:detailregion="dsLibrary">
    <div><strong>Articles:</strong>
    {articles}</div>
    </div>
    </td>
    </tr>
    </table>
    <br/>
    <!--SOURCE TABLE-->
    <table id="ArticleLibrary" border="1" cellspacing="0"
    cellpadding="10">
    <tr>
    <th>category</th>
    <th>articles</th>
    </tr>
    <tr>
    <td>Adobe Photoshop CS2</td>
    <td>
    <ul>
    <li>Revolutionary Vanishing Point</li>
    <li>Multiple layer control</li>
    <li>Smart Objects</li>
    <li>Multi-image digital camera raw file
    processing</li>
    <li>Image Warp</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Illustrator CS2</td>
    <td>
    <ul>
    <li>Live Trace</li>
    <li>Live Paint</li>
    <li>Control palette</li>
    <li>Custom workspaces</li>
    <li>Photoshop layer comp support</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe InDesign CS2</td>
    <td>
    <ul>
    <li>Object styles</li>
    <li>Adobe Photoshop and Adobe PDF layer
    support</li>
    <li>InDesign snippets</li>
    <li>Adobe InCopy CS2 assignments</li>
    <li>Save backwards to InDesign CS</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe GoLive CS2</td>
    <td>
    <ul>
    <li>Enhanced live rendering</li>
    <li>Simple visual tools to build and edit CSS-based
    pages</li>
    <li>Visual CSS authoring for mobile devices</li>
    <li>Visual SVG-t inspection and authoring for
    mobile</li>
    <li>Total site management</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Fireworks 8</td>
    <td>
    <ul>
    <li>Get top-quality design results.</li>
    <li>Produce highly optimized files that still look
    great.</li>
    <li>Slice and export page comps.</li>
    <li>Create sophisticated web navigation.</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Acrobat Professional</td>
    <td>
    <ul>
    <li>Enjoy improved performance</li>
    <li>Extend commenting capabilities</li>
    <li>Easily design Adobe PDF forms</li>
    <li>Enjoy improved attachment capabilities</li>
    </ul></td>
    </tr>
    <tr>
    <td>Adobe Acrobat Standard</td>
    <td>
    <ul>
    <li>Create Adobe PDF documents from Microsoft
    Outlook</li>
    <li>Enjoy improved performance</li>
    <li>Use enhanced headers, footers, and
    watermarks</li>
    <li>Enjoy improved attachment capabilities</li>
    <li>Organize Adobe PDF documents</li>
    </ul></td>
    </tr>
    </table>
    <!--END SOURCE TABLE-->
    </div>
    <!--end wrapper-->
    <div id="footer"><p class="footer">Mathew Baker
       <a
    href="mailto:[email protected]">[email protected]</a>   
    *     Waynesville, OH</p>
    </div>
    <!--end footer-->
    <br/>
    <p class="center" style="font-size:9px"><img
    src="/cgi-sys/Count.cgi?df=matt.dat|display=Counter|ft=6|md=5|frgb=228;224;224|dd=E"/>
    <span class="style1">Web Design by:   Maria Lee
      -  <a
    href="mailto:[email protected]">[email protected]</a> 
    -   (937)554-4116</span></p>
    </body>
    </html>

    Try moving the SpryHTMLDataSet.js script tag below the
    SpryData.js script tag.

  • Spry:repeat dataset in array

    I have a need to pass an indexed dataset to the 'spry:repeat' looping construct.  i.e.  if i have an array of datasets dsSource[0].. dsSource[n], stored in a standard JavaScript array, and I create an HTML construct such as:
    <div class="TabbedPanelsContent attrList" spry:region="dsSource[0]">
      <table class="catTable">
        <tr>
          <th>Id</th>
          <th>Category</th>
        </tr>
        <tr spry:repeat="dsSource[0]">
          <td>
             {id}
          </td>
          <td>
             {category}
              </td>
        </tr>
      </table>
    </div>
    This does not appear to be parsed correctly by Spry.  I get a 'Failed to retrieve data set (dsSource[0]) for spry:repeat' message.  How do I get Spry to use a dataset from an array, here?

    I got help from V1 Fusion on something like this today. Try
    creating a div with the dsPhoto region then have a div with the
    spry:repeat of the dsPhoto then inside that have a span that uses
    the spry:if to call the function and check if something is
    returned.
    Something like this:
    &lt;html&gt;
    &lt;head&gt;
    &lt;script language=&quot;JavaScript&quot;
    type=&quot;text/javascript&quot;
    src=&quot;includes/xpath.js&quot;&gt;&lt;/script&gt;
    &lt;script language=&quot;JavaScript&quot;
    type=&quot;text/javascript&quot;
    src=&quot;includes/SpryData.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;
    src=&quot;
    http://slideshow.triptracker.net/slide.js&quot;&gt;&lt;/script&gt;
    &lt;script language=&quot;JavaScript&quot;
    type=&quot;text/javascript&quot;&gt;
    &lt;!--
    dsPhoto = new
    Spry.Data.XMLDataSet(&quot;photos.xml&quot;,&quot;gallery/photo&quot;);
    var viewer = new PhotoViewer();
    //--&gt;
    &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;div spry:region=&quot;dsPhoto&quot;&gt;
    &lt;div spry:repeat=&quot;dsPhoto&quot;&gt;
    &lt;span spry:if=&quot;viewer.add('/photos/{path}')
    != 0&quot;&gt;&lt;/span&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    &lt;a
    href=&quot;javascript:void(viewer.show(0))&quot;&gt;Slideshow&lt;/a&gt;
    &lt;/body&gt;
    &lt;/html&gt;

  • Spry Repeat a column

    Hi,
    Is there any way yo do a spry repeat over columns instead of
    rows?

    did u try something like this? :
    <table width="100%" border="0">
    <tbody spry:region="ds1" spry:repeat="ds1">
    <tr>
    <td>{name}</td>
    <td>{category}</td>
    <td>{Other}</td>
    </tr>
    </tbody>
    </table>
    if that doesnt help maby check out the products demo
    http://labs.adobe.com/technologies/spry/demos

  • Spry repeat list break DW insert transaction?

    Hi,
    Does anyone know if spry repeat lists are recognized by DW as input devices? I added a few to a form, which uses the builtin DW insert record wizard, and they don't show up with the other controls in the server behavior list and they break the transaction (red ! on the insert transaction).
    Are there configuration issues? Or are these widgets only for search and display forms?
    Thanks for any help,
    Tony

    Hi Tony,
    I´m sure that the SPRY repeat lists you´re creating would need some heavy modification in order to become "regular" ADDT dropdown menus -- what they would need at least, is some embedded string comparison (aka PHP´s "strcmp" function) for displaying an existing column value as "SELECTED", like ADDT´s menus do:
    ...and I don´t think your Spry lists provide this for each list option.
    and they don't show up with the other controls in the server behavior list
    it seems as if those lists have one or more required elements missing which DW needs to accept them as valid "control". You can actually check the differences by opening an other ADDT form containing a valid control and taking a look at the HTML/PHP code of that list -- what does it have what your Spry list doesn´t ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • ADDT Dependent Dropdown SB with Spry Repeat Lists

    Hi,
    I first want to say that this forum is fantastic and full of very bright folks willing to help us not so bright types.
    Next, of course, I have a problem. I'm using spry repeat lists as dropdowns in a form. There are 3 that need to be dependent on each other. I had been using the ADDT dependent dropdown SB and it works great for normal selects. It doesn't seem to work at all on spry repeat lists. I was hoping these two would play nicely together, and maybe they do and there's some trick to this.
    If the ADDT SB's don't work with Spry repeat lists, maybe there's a way to do this using javascript?
    Thanks in advance for any help,
    Tony Galfano

    Hi Gunter,
    Thanks for the help. I've decided, based on your accurate assessment of the work involved in getting all this to work with spry, to ditch that and just refresh the damn page after all new entries are made. I appreciate your help, probably saved me many hours.
    I do have a wierd issue with the ADDT editaqble dropdown behavior. I actually use this one a lot and it always works well. I have one dropdown that only showsw the first 2 characters of the contents. A swcreenshot is avaiable here: http://www.zenwebguru.com/editabledropdown.jpg
    All of the other editable dropdowns on the page, and the site, work fine, but this one is shruken for some reason. I'm wondering if there is a size limitation in the css or the js that can't handle larger records? The largest field in the table contains the value:
    "Flat Guarantee; Purchaser to provide one Fender Amplifier (see rider for list of amps) at no cost to Artist."
    This really shouldn't present a problem, but maybe it's something else?
    Thanks, as always for your great help.
    Tony

  • No Form Submitting with SPRY:REPEAT?

    After getting more and more spry in my code, I run into a
    problem while combining a <tr spry:repeat> with a
    <form> generated for each row:
    Idea / Code is like this:
    <table spry:region="dsSample">
    <tr spry:repeat>
    <form name="myForm" action="detailPage.php?ID=hiddenID"
    method="post">
    <input type="hidden" name="hiddenID" id="hiddenID"
    value="{dsSample::ID}">
    <input type="submit" value="Show all infos" >
    </form>
    <td>{dsSample::ID}</td>
    <td>{dsSample::column1}</td>
    <td>{dsSample::column2}</td>
    </tr>
    </table>
    The problem is that the submit button doesn't submit! I tried
    also with <input type="button" onClick="sendviaJS();")
    I would like to use this for a list/detail view.
    Ist posting a HTML-Form with a sry:region not allowed /
    possible?
    Michael

    Hi Gunter,
    Thanks for the help. I've decided, based on your accurate assessment of the work involved in getting all this to work with spry, to ditch that and just refresh the damn page after all new entries are made. I appreciate your help, probably saved me many hours.
    I do have a wierd issue with the ADDT editaqble dropdown behavior. I actually use this one a lot and it always works well. I have one dropdown that only showsw the first 2 characters of the contents. A swcreenshot is avaiable here: http://www.zenwebguru.com/editabledropdown.jpg
    All of the other editable dropdowns on the page, and the site, work fine, but this one is shruken for some reason. I'm wondering if there is a size limitation in the css or the js that can't handle larger records? The largest field in the table contains the value:
    "Flat Guarantee; Purchaser to provide one Fender Amplifier (see rider for list of amps) at no cost to Artist."
    This really shouldn't present a problem, but maybe it's something else?
    Thanks, as always for your great help.
    Tony

  • Problem with Spry:Repeat and Slide Effect on IE6

    I run the website for my kids' hockey association and I'm not
    a web programmer. I am trying to display events in a Spry region
    using spry:repeat. The data is coming from a Google Calendar . I
    display the event date and title on the main page. I have the
    onclick set to call a javascript function that exposes the details
    using the spry slide effect. It works ok except in IE6.
    The following creates my dataset from a method call to a
    Coldfusion component that returns the XML I need:
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML",
    "events/event",{distinctOnLoad:false});
    </script>
    The following function slides open the detail:
    <script type="text/javascript">
    function startBlind(rid) {
    var contentdiv = document.getElementById('panel'+ rid
    +'Content');
    var panel_height = contentdiv.clientHeight;
    if (panel_height<100){
    var bd = new Spry.Effect.Blind('panel'+ rid +'Content',
    {duration: 800, to: '100px', toggle: true});
    else {
    var bd = new Spry.Effect.Blind('panel'+ rid +'Content',
    {duration: 800, to: '0px', toggle: true});
    bd.start();
    </script>
    Within the repeat I have:
    <div class="EventPanelLabel"
    onclick="startBlind({ds_RowID});">{startDate} &mdash;
    {title}</div>
    I think the XML looks OK but for some reason when the page
    loads, IE6 returns:
    Exception caught while loading
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML:
    [object Error]
    The page seems to work fine in Safari and Firefox on the Mac
    and IE7 as well as Firefox on Windows. Just IE6 seems to be having
    the problem. Could you please take a look at
    http://tornadoyouthhockey.org
    and provide any suggestions you may have?
    Also, is there a way to hide the {startDate} - {title} I'm
    seeing while the page loads?
    Thanks,
    Kevin

    Kin:
    Thanks for your reply. I made the changes you suggested but,
    unfortunately, IE6 is still giving me the same error when the page
    loads:
    Exception caught while loading
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML:
    [object Error]
    Could this be part of the problem an need to be changed as
    well? :
    <div id="panel{ds_RowID}Content"
    Any other ideas? The page is live if you'd care to look...
    http://tornadoyouthhockey.org
    Kevin

  • Work around for spry:repeat="ds1 ds2" limitation

    I need to have both data sets repeat when using a Spry repeating region:
    <div id="apDiv4" spry:region="ds1 ds2">
        <table class="sprytable" border="1">
          <tr>
            <th spry:sort="Q#">Q#</th>
            <th spry:sort="Category">Category</th>
            <th spry:sort="Question">Question</th>
            <th spry:sort="You">You</th>
          </tr>
          <tr spry:repeat="ds1 ds2">
            <td>{ds1::Q#}</td>
            <td>{ds1::Category}</td>
            <td>{ds1::Question}</td>
            <td>{ds2::You}</td>
          </tr>
        </table>
    </div>
    If I use ds1 in the spry:repeat, ds1 data will repeat (but ds2 will use the first value); or if I specify ds2, ds1 will use the first value.
    I need them both to repeat.
    I have spent so much time in forums, etc. and can't seem to find a workaround.
    My only work around is to combine ds1 and ds2 and reload them together from the server - yuk!
    ds1 is fixed and large. ds2 is small and dynamic so reloading really sucks.
    Following are the ds Vars - probably irrelevent:
    var ds1 = new Spry.Data.HTMLDataSet(null, "rsfamily", {sortOnLoad: "Q#", sortOrderOnLoad: "ascending" }); ds1.setColumnType("Q#", "number"); var ds2 = new Spry.Data.HTMLDataSet("youranswersIRtab.php", "youranswerstab", {}); I will worship the person who gives me an idea.
    Thanks

    Thanks V1, timkho and coolsanwa for your thoughts.  Since you've been so patient (and understanding) let me briefly tell you what I'm trying to do.
    I'm considered good at multi-dimensional databases and have recently fallen in love with DreamWeaver to build a pretty complex site so I don't have to be a real expert at PHP, Spry, Ajax, JavaScript, DOM, HTML, CSS etc (I suck, but most everything is working).
    I wish I could point you to a site but I need to keep it secret for a bit - its strictly on my PC for now.
    Let me explain the snippit, which I still don't have working .
    ds1 has three columns and ds2 has one.
    ds1          ds1               ds1                         ds2               ds3
    Q#          Category         Question                 You               Compare1
    1          Boats               How big?                    24               36
    2          Boats               What color?               Blue               Red
    3          House               Number rooms?          3                    6
    4          House               Sq feet?                    1000               3000
    5          House               Have garage?               No               Yes
    etc to 200+
    ds1 doesn't change and I don't want to reload it
    ds2 are your saved answers (I will have a form to fill in and a Submit-  different subject)
    ds3 is user selected comparisons, retrieved from a MD database (academic because ds2 has me stopped).
    Category has table row classes (to whole row), which will drive Tabbed Panels.
    ds1, ds2, ds3 data have the class assigned to each row (setRowSelector) classes for columns(setColumnSelector).
    I want a Spry Table with its many neat features (eg. sorting) that combines the 3 ds's (lets worry about 2 for now).
    Incredibly simple but I'm stuck.
    Timko suggestion results in syntax error- removing single quotes.
    Collsanwa suggestion creates new columns so repeat is done for each row after You column:
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    200+ times
    (I'll repeat the snippit) . Could you point me to an explanation for the spry:if  id/mmid
    Thanks so much.
    <div id="apDiv4" spry:region="ds1 ds2">
        <table class="sprytable" border="1">
          <tr>
            <th spry:sort="Q#">Q#</th>
            <th spry:sort="Category">Category</th>
            <th spry:sort="Question">Question</th>
            <th spry:sort="You">You</th>
          </tr>
          <tr spry:repeat="ds1">
            <td>{ds1::Q#}</td>
            <td>{ds1::Category}</td>
            <td>{ds1::Question}</td>
            <td spry:repeat="ds2" spry:if="'{ds1::id}' == '{ds2::mmid}'">{ds2::You}</td>
    <!--    <td spry:repeat="ds2" spry:if="{ds1::id} == {ds2::mmid}">{ds2::You}</td>   Syntax error w/o quote-->
          </tr>
        </table>
    </div>

  • Spry:repeat works in Mozilla and not IE 6

    I made this little test in Spry.
    It happens to work in Mozilla but not in Internet Explorer 6
    which is quite weird since I almost copy/pasted from one of the
    included examples (the example worked fine everywhere).
    Can anyone point me in the right direction please?
    Thanks...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Club voleibol bargas</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <script language="JavaScript" type="text/javascript"
    src="scripts/spry/xpath.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="scripts/spry/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript">
    var dsNews = new
    Spry.Data.XMLDataSet("scripts/xml_noticias.php", "/allnews/news");
    </script>
    </head>
    <body>
    <div spry:region="dsNews">
    <div spry:repeat="dsNews">{header}</div>
    </div>
    </body>
    </html>
    The XML needed for this looks like this:
    <allnews>
    <news>
    <id>26</id>
    <header>Morbi mauris.</header>
    </news>
    <news>
    <id>23</id>
    <header>Lorem ipsum dolor sit amet</header>
    </news>
    <news>
    <id>8</id>
    <header>Proin convallis. Duis sed est ut ligula
    ullamcorper bibendum.</header>
    </news>
    </allnews>

    I spent days trying to figure it out and the minute I post it
    here the solution comes to me!
    The problem was that the XML file was being generated by a
    PHP script which was not outputting the appropriate headers.
    You can use:
    header('Content-Type: text/xml');
    Or use this other one if your charset is NOT US-ASCII:
    header('Content-Type: application/xml');

Maybe you are looking for