Double spry:repeat for menue list

Hi,
My first 12 h with spry and ajax were quite succesfull but
now there is a point were I can't get along.
Ich have extendet the galleries.xml file with another
dimension:
<kategories>
<kategory>
<targetname>Kategory1</targetname>
<galleries>
<gallery base="island/" file="photos.xml">
<region>Gallerie1</region>
</gallery>
<gallery base="iceland/" file="photos.xml">
<region>Gallery2</region>
</gallery>
</galleries>
</kategory>
</kategories>
My goal is to create a vertical navigation menue like:
Kategory1
Gallery1
Gallery2
Kategory2
Gallery3
Gallery4
I wanted to archieve this with a douple spry:repeat in the
following code:
<div spry:region="dsKategories dsGalleries" >
<div spry:repeat="dsKategories">
<div >{dsKategories::targetname</div>
<div spry:repeatchildren="dsGalleries">
<div>{dsGalleries::region}</div>
</div>
</div>
</div>
but the result looks like that:
Kategory1
Gallery1
Gallery2
Kategory2
Gallery1
Gallery2
Can anyone give me a hint, what I'm doing wrong or what I
might have misunderstood?
Greeting from Cologne, Germany
Markus

Hi pygmaleon,
The reason you don't get what you expect is because your
dsGalleries data set is only selecting the first gallery for the
first category because of the XPath you set on it. If you want to
use Spry to accomplish what you want, you'll have to do some slight
restrucuring of your XML. Perhaps something like this:
<galleries>
<kategories>
<kategory id="1">
<targetname>Kategory1</targetname>
</kategory>
<kategory id="2">
<targetname>Kategory2</targetname>
</kategory>
</kategories>
<gallery base="g1/" file="photos.xml" kategory="1">
<region>Gallerie 1</region>
</gallery>
<gallery base="g2/" file="photos.xml" kategory="1">
<region>Gallerie 2</region>
</gallery>
<gallery base="g3/" file="photos.xml" kategory="2">
<region>Gallerie 3</region>
</gallery>
</galleries>
And then you can do something like:
var dsKategories = new
Spry.Data.XMLDataSet("galleries/kategories.xml",
"/galleries/kategories/kategory" )
var dsGalleries = new
Spry.Data.XMLDataSet("galleries/kategories.xml",
"/galleries/gallery" );
<div spry:region="dsKategories dsGalleries" >
<div spry:repeat="dsKategories">
<div >{dsKategories::targetname</div>
<div spry:repeatchildren="dsGalleries">
<div spry:if="{dsKategories::@id} ==
{dsGalleries::@kategory}">{dsGalleries::region}</div>
</div>
</div>
</div>
--== Kin ==--

Similar Messages

  • SQL query for Menu list for a responsibility

    Dear All
    I want a Query to extract all menu prompt for a responsibility like
    Responsibility -------------------------- menu with prompt
    System Administrator-------------------------- Concurrent\Requests
    System Administrator-------------------------- Concurrent\Set
    System Administrator-------------------------- Concurrent\Conflicts Domains
    System Administrator-------------------------- Concurrent\Manager\Administer
    System Administrator-------------------------- Concurrent\Manager\Define
    System Administrator-------------------------- Concurrent\Manager\WorkShifts
    System Administrator-------------------------- Concurrent\Manager\Rule
    System Administrator-------------------------- Concurrent\Program\Define
    System Administrator-------------------------- Concurrent\Program\Executable
    System Administrator-------------------------- Concurrent\Program\Types
    System Administrator-------------------------- Profile\System
    System Administrator-------------------------- Profile\Personal
    list should be in order which is defined in apps menu.
    I will be great thankful you all.
    Regards
    Aamir

    I did not realize that the procedure has bugs. Sorry about that.
    It took some time to figure out but once fixed, the script works properly.
    I can't post the full code (due to Metalink restrictions) but here are the fixes I had to do.
    1) Do not cut and paste the whole code. It does not get formatted properly. Do small sections at a time.
    2) Change the quotes around the "STACK OVERFLOW". They are not proper.
    3) The code needs labels for the goto statements to work. Replace the first <> with <<label_outer>>. Replace the second <> with <<label_inner>>
    Sandeep Gandhi

  • 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.

  • Spry Repeat List does not appear in Google Chrome 28

    Spry repeat list works in IE8 and Firefox 22.  However in Google Chrome 28 no data appears (data is blank).  This is the code:
    <div>
                  <p><span class="headline">events</span></p>
                  <div spry:region="Events">
                    <dl spry:repeatchildren="Events">
                      <dt>{date}</dt>
                      <dd>{title}</dd>
            </dl>
          </div>
                  <p> </p>
                  <p><span class="headline"><br />
                  </span></p>
                </div>
    This is what appears in IE8 and Firefox:
    events
    May 10,2012
    Pre-Memorial Day Sale
    May 28, 2012
    Big Memorial Day Sale
    May 31, 2012
    Big After-Memorial Day Sale

    This is the code:
    <!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>OrganicUtopia Home Page</title>
        <style type="text/css">
        </style>
        <link href="styles.css" rel="stylesheet" type="text/css" />
              <style type="text/css">
              .headline {          color: #88B036;
              font-weight: bold;
              font-size: 18px;
              margin-bottom: -2px;
        </style>
              <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
              <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
              <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
              <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
              <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
              <script src="SpryAssets/SpryCollapsiblePanel.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 Events = new Spry.Data.XMLDataSet("data/events.xml", "calendar/event");
        </script>
              </head>
    <body>
    <div id="container">
      <div id="GlobalNav">Site Map | Login</div>
      <div id="header"><img src="images/ou_logo.gif" width="210" height="41" /></div>
      <div id="nav">{Menu Bar Here}</div>
      <div id="main">
        <p class="headline">welcome to organic utopia </p>
        <p> </p>
        <div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">What's New</li>
            <li class="TabbedPanelsTab" tabindex="0">Features</li>
            <li class="TabbedPanelsTab" tabindex="0">Customer Testimonials</li>
    </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent">
              <p><span class="headline">Shop in the green! </span></p>
              <p><img src="images/recycle_bag.gif" alt="Recycle Bag" width="81" height="101" hspace="10" vspace="5" align="left" />We have added recyclable shopping bags, which eliminate the need for the age-old question &quot;paper or plastic?&quot;. These bags are tough, stylish, and eco-friendly! Pick from 2 sizes with the OU logo!</p>
              <p></p>
            </div>
            <div class="TabbedPanelsContent">
              <p><span class="headline">Featured stuff! </span></p>
              <p><img src="images/couch.gif" alt="Couch" width="107" height="73" hspace="5" vspace="5" align="left" />A whole new line of green living products has just hit the shelves! Try our new recyclable office furniture - imagine a couch that dissolves on its own back into Mother Earth! We also have a whole new line of natural cosmetics made from the finest ingredients that are gentle on your skin!</p>
            </div>
            <div class="TabbedPanelsContent">
              <p><span class="headline">Our loyal customers...</span></p>
              <p>&quot;organic Utopia is the place to shop - i wouldn't buy my stuff anywhere else...EVER!&quot; <br />
                - Jeff A., Boston, MA</p>
              <p>&quot;The best place for healthy, organic and green living..everything from food to furniture, all in one place!&quot; -  Fred G., Long Beach, NY </p>
            </div>
    </div>
        </div>
        <p> </p>
        <p> </p>
        <p> </p>
        <h1 > </h1>
      </div>
      <div id="sidebar">
    <div>
      <div id="Accordion1" class="Accordion" tabindex="0">
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Food Products</div>
          <div class="AccordionPanelContent">Dried Fruits &amp; Vegetables<br />
    Snacks<br />
    Beverages<br />
    Heat and Serve<br />
    Cereals</div>
        </div>
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Clothing</div>
          <div class="AccordionPanelContent">Bags<br />
    Accessories<br />
    Shoes<br />
    Fake Leather Goods</div>
        </div>
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Home Products</div>
          <div class="AccordionPanelContent">Candles<br />
    Pillows<br />
    Storage<br />
    Knick Knacks</div>
        </div>
    <div class="AccordionPanel">
      <div class="AccordionPanelTab">Lifestyle</div>
          <div class="AccordionPanelContent">Music &amp; DVDs<br />
    Decorations &amp; Wall Hangings</div>
      </div>
      </div>
    </div>
                <div>
              <p><span class="headline">events</span></p>
              <div spry:region="Events">
                <dl spry:repeatchildren="Events">
                  <dt>{date}</dt>
                  <dd>{title}</dd>
                </dl>
              </div>
              <p> </p>
              <p><span class="headline"><br />
                </span></p>
            </div>
            <div>
              <div id="CollapsiblePanel1" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">Contact Us</div>
                <div class="CollapsiblePanelContent">Enter your email address to receive specials, event notifications and more!<br />
                  <label>
                    <input name="emailaddr" type="text" id="emailaddr" size="20" />
                    <br />
                    <input type="submit" name="button" id="button" value="Submit" />
                  </label>
                </span></div>
              </div>
            </div>
            <div></div>
          </div>
          <div id="footer">All content copyright of OrganicUtopia</div>
        </div>
        <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
    </script>
    </body>
    </html>

  • Spry Horizontal Menu List Items crash IE6 browser

    ****Update*****
    Apparently, it was width:100%; set on each hover over
    background color for the list items in our default stylesheet that
    was causing IE6 to crash.
    Menus are in working order in all browsers now!
    We have integrated the Spry Horizontal Menu with a website,
    and added custom styling to SpryMenuBarHorizontal.css. The menu
    works in Mozilla, Safari, and IE7. However, in IE6, after hovering
    over the navigation, the drop down menu appears, but, as soon as
    you move your mouse into the drop down to select an item from the
    list, IE6 crashes. Every time. Various Computers.
    We have tried reverting to the original
    SpryMenuBarHorizontal.css file, however, the same problem occurs.
    We haven't made any changes to the original js file
    (SpryMenuBar.js).
    Has anyone ever experienced this issue?
    Here is our customized CSS:
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    img#nfl {
    background-image:url(/Images/slices/nfl.png);
    background-repeat:no-repeat;
    height:14px;
    width:40px;
    margin:7px auto auto 25px;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/nfl.png");
    _background-repeat:no-repeat;
    _background-image:none;
    img#mlb {
    background-image:url(/Images/slices/mlb.png);
    background-repeat:no-repeat;
    height:14px;
    width:43px;
    margin:7px 20px auto auto;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/mlb.png");
    _background-repeat:no-repeat;
    _background-image:none;
    img#milb {
    background-image:url(/Images/slices/milb.png);
    background-repeat:no-repeat;
    height:14px;
    width:112px;
    margin:7px auto auto auto;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/milb.png");
    _background-repeat:no-repeat;
    _background-image:none;
    _margin:7px auto auto -10px;
    img#ctown {
    background-image:url(/Images/slices/ctown.png);
    background-repeat:no-repeat;
    height:14px;
    width:114px;
    margin:7px auto auto 50px;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/ctown.png");
    _background-repeat:no-repeat;
    _background-image:none;
    _margin:7px auto auto 40px;
    img#nba {
    background-image:url(/Images/slices/nba.png);
    background-repeat:no-repeat;
    height:14px;
    width:43px;
    margin:7px auto auto 100px;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/nba.png");
    _background-repeat:no-repeat;
    _background-image:none;
    _margin:7px auto auto 70px;
    img#nhl {
    background-image:url(/Images/slices/nhl.png);
    background-repeat:no-repeat;
    height:14px;
    width:41px;
    margin:7px auto auto 90px;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/nhl.png");
    _background-repeat:no-repeat;
    _background-image:none;
    _margin:margin:7px auto auto 100px;
    img#ncaa {
    background-image:url(/Images/slices/ncaa.png);
    background-repeat:no-repeat;
    height:14px;
    width:52px;
    margin:7px auto auto 70px;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
    sizingMethod=scale src="/Images/slices/ncaa.png");
    _background-repeat:no-repeat;
    _background-image:none;
    _margin:7px auto auto 60px;
    /* The outermost container of the Menu Bar, an auto width box
    with no margin or padding */
    ul.MenuBarHorizontal
    list-style-type: none;
    cursor: default;
    width:950px;
    height:32px;
    background-image:url(/Images/slices/primaryNavSlice.png);
    background-repeat:repeat-x;
    margin:0px;
    padding:0px;
    vertical-align:middle;
    border-bottom:1px solid #000;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 8em;
    float: left;
    /* Submenus should appear below their parent (top: 0) with a
    higher z-index, but they are initially off the left side of the
    screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    /*width: 8.2em;*/
    width:auto;
    position: absolute;
    left: -1000em; /* without this all menus are visible without
    hover */
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to auto so it comes onto the
    screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto; /* without this menus don't show up */
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    /*width: 8.2em;*/
    width:auto;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    padding: 0.15em 0.15em;
    text-decoration: none;
    ul#teamsMenu table#teams {
    font-family:Arial, Helvetica, sans-serif;
    color:#000;
    font-size:11px;
    width:500px;
    background-color:#fff!important;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    li.ncaa_list #teams.ncaa_table {
    position:absolute;
    left:-590px;
    top:7px;
    To center the tables in the screen
    li.nfl_list #teams.nfl_table {
    position:absolute;
    top:7px;
    li.mlb_list #teams.mlb_table {
    position:absolute;
    top:7px;
    li.milb_list #teams.milb_table {
    position:absolute;
    left:-80px;
    top:7px;
    li.ctown_list #teams.ctown_table {
    position:absolute;
    top:7px;
    li.nba_list #teams.nba_table {
    position:absolute;
    left:-200px;
    top:7px;
    li.nhl_list #teams.nhl_table {
    position:absolute;
    left:-190px;
    top:7px;
    li.ncaa_list #teams.ncaa_table {
    position:absolute;
    left:-590px;
    top:7px;
    }

    I am having the same problems in IE7. I'm using the latest
    version of everything (Spry 1.6.1 and javascript file version 0.12)
    and at first I was having the problem on my drop down menus
    appearing horizontal with all the correct styles but when I changed
    the rule ul.MenuBarHorizontal ul to position: relative; the drop
    downs appear vertical now but I have no beige border around the
    whole ul anymore and I'm getting white space inbetween list items.
    http://www.wusf.usf.edu/Header_Nav_Footer_newStyleSheet.cfm
    so if anyone has any advice I'd much appreciate it. Also i'm
    using 1px width on my borders no decimals.

  • Spry Menu Bar - Different Background Image Wanted for menu items

    Hi, I've looked everywhere for help with this and just haven't found any answers yet ...
    I want my Dreamweaver CS5.5 menu to look like this design I've done in PhotoShop ...
    It's a simple one level list with no sub-levels.
    Everything is good, except I can only set one background image for all the menu items at this level.
    I want the first, last, and all the middle, menu items to use different background images.
    I have no idea where or how to insert the code to set a different background image for each individual menu item ...
    I know I could use images set one on top another in a column with rollover image swop, but the spry menu opens the door for dynamic content so I'm keen to get it working.
    Manchester city council has a great example of this style of menu design working at - http://www.manchester.gov.uk/
    They've got funky indenting of the text as well.
    ~~~~~~
    This is the code for my menu list ...
      <div class="sidebar1">
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="#">Home</a></li>
          <li><a href="#">News</a></li>
          <li><a href="#">Groups</a></li>
          <li><a href="#">Events</a></li>
          <li><a href="#">About</a></li>
          <li><a href="#">Contact</a></li>
             <li><a href="#">Help</a></li>
        </ul>
      </div>
    This is how I set the background image (but I can only define one image) ...
    I set the image background to "Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg" through ...
    CSS Styles
    SpryMenuBarVertical.css
    ul.MenuBarVertical a
    I then select the background category
    and browse to the image file.
    doing this changes my CSS code as follows ...
    ul.MenuBarVertical li
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 170px;
        margin-top: 4px;
        margin-bottom: 4px;
        background: url(/Images/Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg);
    ul.MenuBarVertical ul
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: absolute;
        z-index: 1020;
        cursor: default;
        width: 170px;
        left: -1000em;
        top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
        background: url(/Images/Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg);
    ul.MenuBarVertical a
        display: block;
        cursor: pointer;
        padding: 0.5em 0.75em;
        color: #0000;
        text-decoration: none;
        font: normal 12px Verdana, Geneva, sans-serif;
        background: #EEE url(/Images/Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg);
    ~~~~~~
    These are the three images I want to apply to the top middle and bottom menu items :
    Top menu item background image - "Menu-Nav-Bar-Pic-Top-v1-w170px-h32px.jpg"
    Middle menu items background image - "Menu-Nav-Bar-Pic-Mid-v1-w170px-h32px.jpg"
    Bottom menu item background image - "Menu-Nav-Bar-Pic-Bot-v1-w170px-h32px.jpg"
    ~~~~~~
    As I am unable to set the menu items individually, this is how the menu looks like on my website at the moment ...
    ~~~~~~
    So near yet so far ! I'm hapy with the verdana font, the image size and spacing, but the background images I just can't set them right.
    I'd really appreciate any help on this as I'm out of ideas.
    Thank you.

    The easiest way is to use pseudo elements.
    To style the first and last menu items ifferently to the rest, merely add :first-child and :last-child respectivly as follows
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">
    <style>
    ul.MenuBarVertical li:first-child a {
        background-color: red;
        color: white;
    ul.MenuBarVertical li:last-child a {
        background-color: green;
        color: yellow;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="#">Item 1</a></li>
      <li><a href="#">Item 2</a></li>
      <li><a href="#">Item 3</a></li>
      <li><a href="#">Item 4</a></li>
      <li><a href="#">Item 5</a></li>
    </ul>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    In your case, in liue of the background colour, you would have an image.
    Gramps

  • Error "failed to retrieve data set (ds1) for spry:repeat" in IE when using filters

    Everything works fine in Firefox, but in IE7 I get an error
    message saying "Failed to retrieve data set (ds1) for spry:repeat."
    It seems to be my filter set that's causing this. Once I commented
    out the chunk of code that handles filtering, the page finally
    loaded. How can I get it to work in IE?
    Here's the page:
    http://a44.awardspace.com/testing/mbc/portfolio/

    This usually means the dataset (ds4) can not be found / is not created.
    So double check that you have created the dataset.
    If this is the case.. please provide us with a online url.

  • Limiting Items Displayed in Spry Repeat Lists, Tables, Etc.

    Is it possible to limit the items shown in Spry repeat
    region? For example say I have 20 items in a list and only want to
    display the first three items, not the entire list. If so how is
    that done?

    Hey Oscar,
    Glad that works for you.
    Kin and I were thinking that {ds_RowNumber} might be better
    for that particular looping, but you get the idea.
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
    That was our first overview doc and it was definitive at the
    time. We no longer update it but it's a good intro to Spry.
    You can find the built in data references in that doc,
    granted almost at the very bottom.
    The API doc
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    is a good start but we still have a lot to add to it. I have
    plans for it for sure.
    We are doing a big push for 1.6 towards progressive
    enhancement, unobtrusive js and things like that.
    Expect docs and samples and some cool utilities to come out
    this summer and for 1.6.
    And we won't charge for it, but we also won't return any
    cash-laden envelopes... ;)
    Let us know how to improve any part of Spry.
    Thanks,
    Don

  • Adding a Counter to Spry Repeat List

    Hi, this might seem like a relatively simple problem but after spending some time, I haven't yet arrived at an appropriate solution.
    1. I have spry repeat list.
    2. I want add a counter (required by a javascript function nested within the repeat list).
    I have tried ds2.getCurrentRowID and that failed.
    One simple way of thinking of the problem is: how would you modify a spry repeat list to display each row, numbered 1 through n down the left-hand column?
                <tr spry:repeat="ds2" spry:odd="evenRowVenue" spry:even="oddRowVenue" spry:hover="hoverVenue" onClick="MM_callJS('GEvent.trigger(venue_list[INCREMENTING COUNTER HERE],\'click\');')">
                  <td align="left"><a href="venue_show.php?vid={@vid}">{@name}</a></td>
                  <td align="left">{@street1}</td>
                  <td align="left">{@city_suburb}</td>
                  <td align="left">{@state}</td>
                  <td align="left">{@country}</td>
                  <td align="left">{@rating}</td>
                </tr>

    secondliver wrote:
    Hi, this might seem like a relatively simple problem but after spending some time, I haven't yet arrived at an appropriate solution.
    1. I have spry repeat list.
    2. I want add a counter (required by a javascript function nested within the repeat list).
    I have tried ds2.getCurrentRowID and that failed.
    One simple way of thinking of the problem is: how would you modify a spry repeat list to display each row, numbered 1 through n down the left-hand column?
                <tr spry:repeat="ds2" spry:odd="evenRowVenue" spry:even="oddRowVenue" spry:hover="hoverVenue" onClick="MM_callJS('GEvent.trigger(venue_list[INCREMENTING COUNTER HERE],\'click\');')">
                  <td align="left"><a href="venue_show.php?vid={@vid}">{@name}</a></td>
                  <td align="left">{@street1}</td>
                  <td align="left">{@city_suburb}</td>
                  <td align="left">{@state}</td>
                  <td align="left">{@country}</td>
                  <td align="left">{@rating}</td>
                </tr>
    {ds_RowNumber} is what you are looking for.
    So in you case:
    onClick="MM_callJS('GEvent.trigger(venue_list[{ds_RowNumber}],\'click\');')">

  • 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

  • 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>

  • Double horizontal spry drop down menu bar problems

    Hello Everyone,
    I'm new to the spry tools and I need a little help. This is what I'm trying to accomplish in Dreamweaver CS4:
    I need 2 horizontal spry menu bars for navigation. I have created a div for each spry tool, 1 div placed above the other and they cross the entire width of the page. I have created the spry menu bars. Everything seems to be working correctly in both menu bars, That is until you open the IE browser, all other browsers tested fine. The problem is that when you hover over the bottom menu bar in IE, the drop down menu does not drop all the way down. The first submenu of the drop down menu covers the main menu bar. I have tried to change the css for the spry menu bar at the ul.MenuBarHorizontal li.MenuBarItemIE to show the display: as inline and also tried block and niether had any effect. Someone please help. Thanks.
                        css spry drop down menu 1
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.MenuBarHorizontal li.MenuBarItemIE
              display: inline;
              f\loat: left;
              background: #FFF;
                       css   spry drop down menu 2
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.adminbarh li.MenuBarItemIE
              display: inline;
              f\loat: left;
              background: #FFF;
    This site is not yet live. If anyone is willing I can send an attachment of my complete spry CSS via email.  Contact me at [email protected]
    See what I got here. www.prospectingtreasures.com

    Hello Everyone,
    I'm new to the spry tools and I need a little help. This is what I'm trying to accomplish in Dreamweaver CS4:
    I need 2 horizontal spry menu bars for navigation. I have created a div for each spry tool, 1 div placed above the other and they cross the entire width of the page. I have created the spry menu bars. Everything seems to be working correctly in both menu bars, That is until you open the IE browser, all other browsers tested fine. The problem is that when you hover over the bottom menu bar in IE, the drop down menu does not drop all the way down. The first submenu of the drop down menu covers the main menu bar. I have tried to change the css for the spry menu bar at the ul.MenuBarHorizontal li.MenuBarItemIE to show the display: as inline and also tried block and niether had any effect. Someone please help. Thanks.
                        css spry drop down menu 1
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.MenuBarHorizontal li.MenuBarItemIE
              display: inline;
              f\loat: left;
              background: #FFF;
                       css   spry drop down menu 2
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.adminbarh li.MenuBarItemIE
              display: inline;
              f\loat: left;
              background: #FFF;
    This site is not yet live. If anyone is willing I can send an attachment of my complete spry CSS via email.  Contact me at [email protected]
    See what I got here. www.prospectingtreasures.com

  • TS1368 My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • 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.

Maybe you are looking for

  • XL-Reporter - simple question on dimensions

    SAP B0 2005A SP01 PL29 XLR PL29 Hi everybody, I'm working with the XLR Advanced Report Builder. Who can explain the difference between the following two dimensions (I'm working with a german version so I'm not sure if the english names I use are actu

  • I cannot update my iPad 2 to iOs 7.1.

    Dear Apple Support Communities users, Hi! I'm here because I want to ask for a problem, since so long ago. The update for iOs 7 & 7.1 have been published for such a kinda long time, but my iPad 2 is still on iOs 6. Everytime when I clicked to the 'So

  • I'm missing part of a song I downloaded from itunes store. How do I fix this?

    How can I fix a song that is missing the last minute? I downloaded it from iTunes store.

  • IMLib could not be found

    I tried to package authorware files for the Mac. On the Mac I used the packager to convert PC authorware to Mac. It seemed to work. When I run the file it comes up with and error saying IMLib could not be found. Sorry, I don't use Macs. Is this an er

  • FM Integration with IO Settlement

    Hi Gurus, We implemented FM BCS, In our monthly Internal Order settement my Consumed Budget in the IO are Returning back as released budget and it allow to spend these budget further, How can i restrict the this issue and we dont want any FM document