Spry Menu Using Nested XML Dataset (Spry 1.6)

I have a vertical menu with a few items. One of which is
labeled Products which has submenus. I want to have that submenu
read from a Nested XML dataset. Using a single dataset for one
level in a menu is easy enough, but the subenu will have submenus.
Example Menu:
Home
Company
Products
|-- Product 1
|-- Item 1
|-- Item 2
|-- Item 3
|-- Product 2
|-- Item 1
|-- Item 2
|-- Product 3
|-- Item 1
|-- Item 2
|-- Item 3
|-- Item 4
|-- Product 4
|-- Item 1
|-- Item 2
|-- Product 5
I have been looking for an easy way to use the Spry Nested
XML Dataset to create the Product/Item menu. The number of Products
may vary as well as the number of Items in each Product submenu
(also, some Products may not have Items).
I already have an ASP page that creates the XML data from a
database.
Schema follows (XSD ):
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<xsd:element name="products">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="product_type"
maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="type_name" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="type_url" maxOccurs="1"
type="xsd:anyURI"/>
<xsd:element name="product_name"
maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="item_name" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="item_url" maxOccurs="1"
type="xsd:anyURI"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I have been programming for 17 years but am new to Spry. If
this cannot be done easily with the Spry framework, I'll probably
wind up splitting the XML data into 2 files (Products and Items)
then writing a nested loop and call each by row, but then I have to
find out how Spry Datasets reference XML data. Figuring out how to
call rows from the XML data shouldn't be so bad, but this method
just seems like such a hassle for something that should be easy.
Pseudocode follows:
j=1
i=1 to TotalNumberProducts
display Product i from Products
ItemsExist=true
While ItemsExist
if j > TotalNumberItems | Item j is not for Product then
ItemsExist=false
else
display Item j from Items
j++
Wend
Next
Thanks in advance for any help or direction!

That's exactly what I'm trying to do. However, I implemented
that code and the submenus won't appear. I suspect the submenus
aren't finding the field names from the Nested XML Dataset. The
first level of Product menus work great (this is a submenu of the
overall menu) and correctly identify products that do not have
submenus, so I know it's picking up the number of records in the
Nested Dataset correctly - it just won't display the data in the
next level of menu.
variable and script declarations:
<script src="SpryAssets/SpryMenuBar.js"
type="text/javascript"></script>
<script src="SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="SpryAssets/SpryNestedXMLDataSet.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarVertical.css"
rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
var productMenuData = new
Spry.Data.XMLDataSet("products.asp", "products/product_type");
var productMenuDataItems = new
Spry.Data.NestedXMLDataSet(productMenuData, "product_name");
//-->
</script>
Code for menus:
<ul id="NavMenu" class="MenuBarVertical">
<li><a
href="index.html">Home</a></li>
<li><a
href="company.html">Company</a></li>
<li><a href="franco_giberti.html">Franco
Giberti</a></li>
<li><a class="MenuBarItemSubmenu"
href="products.asp">Products</a>
<ul spry:region="productMenuData
productMenuDataItems">
<li spry:repeat="productMenuData"><a
class="MenuBarItemSubmenu" href="{type_url}"
spry:if="{productMenuDataItems::ds_RowCount} !=
0">{type_name}</a> <a href="{type_url}"
spry:if="{productMenuDataItems::ds_RowCount} ==
0">{type_name}</a>
<ul spry:if="{productMenuDataItems::ds_RowCount} !=
0">
<li spry:repeat="productMenuDataItems"><a
href="{productMenuDataItems::item_url}">{productMenuDataItems::item_name}</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="contact.html">Contact Us</a>
<!-- end #sidebar1 -->
</li>
</ul>
XML:
<products
xsi:noNameSpaceSchemaLocation="products.xsd">

<product_type>
<type_name>Pasta Sauce</type_name>
<type_url>pt_2.asp</type_url>

<product_name>
<item_name>Putenesca</item_name>
<item_url>pn_3.asp</item_url>
</product_name>

<product_name>
<item_name>Arrabiata</item_name>
<item_url>pn_4.asp</item_url>
</product_name>

<product_name>
<item_name>Pesto</item_name>
<item_url>pn_5.asp</item_url>
</product_name>

<product_name>
<item_name>Basil and Tomato</item_name>
<item_url>pn_6.asp</item_url>
</product_name>

<product_name>
<item_name>Bolognese</item_name>
<item_url>pn_7.asp</item_url>
</product_name>

<product_name>
<item_name>Carboniera</item_name>
<item_url>pn_8.asp</item_url>
</product_name>
</product_type>
+
<product_type>
<type_name>Organic Olive Oil</type_name>
<type_url>pt_3.asp</type_url>

<product_name>
<item_name>Original</item_name>
<item_url>pn_9.asp</item_url>
</product_name>

<product_name>
<item_name>Basil</item_name>
<item_url>pn_10.asp</item_url>
</product_name>

<product_name>
<item_name>Herbs</item_name>
<item_url>pn_11.asp</item_url>
</product_name>

<product_name>
<item_name>Sun Dried Tomato</item_name>
<item_url>pn_12.asp</item_url>
</product_name>
</product_type>
+
<product_type>
<type_name>Organic Spreads</type_name>
<type_url>pt_4.asp</type_url>

<product_name>
<item_name>Putenesca</item_name>
<item_url>pn_13.asp</item_url>
</product_name>

<product_name>
<item_name>Arrabiata</item_name>
<item_url>pn_14.asp</item_url>
</product_name>

<product_name>
<item_name>Pesto</item_name>
<item_url>pn_15.asp</item_url>
</product_name>

<product_name>
<item_name>Basil and Tomato</item_name>
<item_url>pn_16.asp</item_url>
</product_name>

<product_name>
<item_name>Bolognese</item_name>
<item_url>pn_17.asp</item_url>
</product_name>

<product_name>
<item_name>Carboniera</item_name>
<item_url>pn_18.asp</item_url>
</product_name>
</product_type>
+
<product_type>
<type_name>Organic Grilled Vegetables</type_name>
<type_url>pt_5.asp</type_url>

<product_name>
<item_name>Putenesca</item_name>
<item_url>pn_19.asp</item_url>
</product_name>

<product_name>
<item_name>Arrabiata</item_name>
<item_url>pn_20.asp</item_url>
</product_name>

<product_name>
<item_name>Pesto</item_name>
<item_url>pn_21.asp</item_url>
</product_name>

<product_name>
<item_name>Basil and Tomato</item_name>
<item_url>pn_22.asp</item_url>
</product_name>

<product_name>
<item_name>Bolognese</item_name>
<item_url>pn_23.asp</item_url>
</product_name>

<product_name>
<item_name>Carboniera</item_name>
<item_url>pn_24.asp</item_url>
</product_name>
</product_type>

<product_type>
<type_name>Truffle Products</type_name>
<type_url>pt_6.asp</type_url>
</product_type>
</products>
Any further guidance would be very much appreciated!

Similar Messages

  • Nested XML dataset: can't see items

    Hi,
    I'm a newbie and started using Spry 1.5 because it looks
    promising and helps me avoid getting into javascript for the
    moment. My XML data looks like
    <lanternsandsconces>
    <lantern>
    <name>1</name>
    <size>
    <description>Standard 1</description>
    </size>
    <size>
    <description>Standard 2</description>
    </size>
    </lantern>
    <lantern>
    <name>2</name>
    <size>
    <description>Standard 1</description>
    </size>
    </lantern>
    </lanternsandsconces>
    I am trying to access the data using Nested XML datasets. I
    tried to mimic your example on
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html
    with my XML data. Here's my html:
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryXMLNestedDataSet.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var dsTest = new
    Spry.Data.XMLDataSet("../XML/productsnested1.xml","lanternsandsconces/lantern");
    var dsTestNest = new Spry.Data.NestedXMLDataSet(dsTest,
    "size");
    </script>
    <div>
    <table class="dataTable">
    <tr>
    <th>lantern</th>
    <th>sizes</th>
    </tr>
    <tr>
    <td spry:region="dsTest">
    <ul spry:repeatchildren="dsTest" spry:choose="">
    <li spry:when="{ds_CurrentRowNumber} == {ds_RowNumber}"
    spry:setrow="dsTest" spry:select="select" spry:hover="hover"
    spry:selected="">{dsTest::name}</li>
    <li spry:default="" spry:setrow="dsTest"
    spry:select="select"
    spry:hover="hover">{dsTest::name}</li>
    </ul>
    </td>
    <td spry:region="dsTestNest">
    <ul spry:repeatchildren="dsTestNest">
    <li>{dsTestNest::description}</li>
    </ul>
    </td>
    </tr>
    </table>
    </div>
    I would appreciate any help on getting this to work .... As
    you can see it is almost a straight copy and paste from the
    example. I have the proper scripts copied into the SpryAssets
    directory.
    Cheers,
    Huub

    Ah,
    excellent. That indeed works. For future reference: this line
    I actually copied from
    http://livedocs.adobe.com/en_US/Spry/SDG/help.html?content=WSC0DC5D76-B6F1-41ae-9E59-586A1 19AA7C5.html
    that's where the bug originated. At
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html
    it is correct.
    thanks a bunch, JV.
    Cheers,
    Huub

  • Using external xml for spry menu help

    Just started playing with DW CS3, I would like to know how to
    insert a spry menu and get the xml data from an external file. Can
    anyone point me at a suitable example or tutorial please?

    The video workshop has some great tutorials with spry.
    http://www.adobe.com/designcenter/video_workshop/
    Aram

  • Spry menubar and nested xml

    I'm need some help to create a nested spry menu. I use a xml
    file dynamically created

    yes and no, the problem is when I create the xml file from a
    DB whit export recordset as xml I get a xml file structure looking
    like this
    menu1
    submenu1
    menu2
    submenu2
    instead of
    menu1
    submenu1.1
    submenu1.2
    menu2
    submenu2.1
    menu3
    menu4
    Is the a way to make the xml file this way from a DB. My DB
    looks like this (mySQL)
    topic table
    id_top
    name_top (menu item)
    article table
    id_art
    name_art (submenu)
    content_art

  • How to populate a spry menu using microsoft sql server database?

    Hi
    I would like to use dreamweaver cs4 and spry menu to create a dynamically created menu system.
    My concept is to populate the menu items on the fly using MS sql server as the database technology.
    Can anyone point me in the right direction? I have googled and searched but cant seem to get anywhere.
    Also once i get my menu established, i would like to style it. It seems like a lot of work to style each element by hand. I was wondering if there were some collection of spry menu css files somewhere that i could just attach and presto!
    Thank you.
    Jerry

    I would like to use dreamweaver cs4 and spry menu to create a dynamically created menu system. My concept is to populate the menu items on the fly using MS sql server as the database technology.
    Basically
    create a dynamic XML file containing data from the database
    create A SpryXMLDataSet
    create a SpryRegion where the menu appears
    using SpryRepeat populate the menu
    More info can be found here http://labs.adobe.com/technologies/spry/samples/
    Also once i get my menu established, i would like to style it. It seems like a lot of work to style each element by hand. I was wondering if there were some collection of spry menu css files somewhere that i could just attach and presto!
    Have a look here http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2141544
    If you require further Spry related support go to http://forums.adobe.com/community/labs/spry

  • Spry Menu 1.6.1 vs Spry Menu 2.0 (1.7) aka UI Menubar

    I have been working with the original Spry Menu that came with CS5 for some time now.  Slowly I have been learning how to use it, and more importantly, edit it without breaking it.  There are some great articles out there by David Power that I printed out and keep in a folder at my desk.  Great stuff.
    Now I want to build a menu that is supported on touch pads like an iPad.  Having spent many hours trying to figure it all out, I found a post that said you had to use the Spry Menu 2.0 version for touch features.  Oops, did not know that.  Having upgraded to the new version in the Widget Browser, customized it for colors and such, I put into a test page.  This is where it went all wrong. 
    I have no access to anything in the Properties Selector area.  It’s just blank, no options at.  If I go back to one of my old menus, it works just fine.  So I can't add top or submenu items to the menu like I could in the old version, unless I want to type out the code.  The menu does not display is design view like a finished product.  All I get is a listing of the menu.  I have to display the page in a browser or in live view mode to see it display right.  Which throws the page all out whack and it’s hard to edit with this big long list of text.
    So, I guess my question here is.  Does this sound right to everyone?  I saw a posting by Gramps, which makes me think I understand the problem above it true and because of that he sticks to the original version.  I want the touch pad access so I need to upgrade. 
    Is there a fix I have not found?  Some code change to make it all happy again?  Should I just dump the idea of using the Spry Menu and use something else?
    Thanks to everyone out there who take the time to answer our questions.  I think this is a my very first posting. 

    Amy, welcome to our fold.
    You have struck the epitome of the problem when using Spry Menu 2.0, it is a beast when one tries to shape and style it outside of the Widget Browser. The markup looks very meek and mild as in
    <ul id="MenuBar">
      <li> <a href="#">Home</a></li>
      <li> <a href="#">Entertainment</a></li>
      <li> <a href="#">Politics</a></li>
      <li> <a href="#">Sports</li>
    </ul>
    but once it is interpreted by the JavaScript, it looks like
    <div class="MenuBar  MenuBarLeftShrink" id="MenuBar">
        <ul id="" class="MenuBarView">
        <li class="MenuItemContainer"><a href="#" class="MenuItem MenuItemFirst" tabindex="0"><span class="MenuItemLabel">Home</span></a></li>
        <li class="MenuItemContainer"><a href="#" class="MenuItem" tabindex="-1"><span class="MenuItemLabel">Entertainment</span></a></li>
        <li class="MenuItemContainer"><a href="#" class="MenuItem" tabindex="-1"><span class="MenuItemLabel">Politics</span></a></li>
        <li class="MenuItemContainer"><a href="#" class="MenuItem" tabindex="-1"><span class="MenuItemLabel">Sports</span></a></li>
        <a href="#" class="MenuItem" tabindex="-1"><span class="MenuItemLabel MenuItemLast"></span></a>
      </ul><br class="MenuBarBreak">
    </div>
    <a href="#">
    <!-- rest of markup -->
    </a>
    </body>
    </html>
    There are certain aspects that I do not understand without spending time to follow them through. There is no documentation so you are left on your own. When submenu levels are added, the generated markup looks even stranger.
    The main problem with the original SpryMenuBar is its lack of support for touch screens; alternatively one could say that the problem lies with touch screens and their lack of ability to register hover events.
    This means that if we had a menubar that is not reliant upon hover events, our menubar will work in touch screen clients. In our menu above (that is the one that has not been reformed by JS), there is no hover event. All of the menuitems, being single level, follow the link with a click event. It is when a menuitem has a link as well as submenus that a hover event is required. If we remove the link when a menuitem has submenus, we also remove the need for a hover event and it will work in touch screen devices. To illustrate this
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu" href="#">Item 1</a> <!-- no link -->
        <ul>
          <li><a href="mylink11.html">Item 1.1</a></li>
          <li><a href="mylink12.html">Item 1.2</a></li>
          <li><a href="mylink13.html">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="mylink2.html">Item 2</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Item 3</a> <!-- no link -->
        <ul>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a> <!-- no link -->
            <ul>
              <li><a href="mylink311.html">Item 3.1.1</a></li>
              <li><a href="mylink312.html">Item 3.1.2</a></li>
            </ul>
          </li>
          <li><a href="mylink32.html">Item 3.2</a></li>
          <li><a href="mylink33.html">Item 3.3</a></li>
        </ul>
      </li>
      <li><a href="mylink4.html">Item 4</a></li>
    </ul>
    There are commercial extensions available that do work within DW as opposed to products from the Widget Browser that do not allow for DW interaction.
    Gramps

  • Spry Menu using SSI?

    I am new to CS5 and getting a bit discouraged.  I have created a container and then Inserted DIV tag for header, footer, top menu bar, left side menu bar.  However when I add the SSI using the insert ssi and then attaching the page this happens - my container disappears.
    What am I doing wrong?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
    body {
    background-color: #993;
    text-align: center;
    #container {
    background-color: #FFF;
    width: 960px;
    height: 960px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    text-align: left;
    #top_menu_bar {
    background-color: #963;
    width: 960px;
    height: 50px;
    #leftside_menu_bar {
    background-color: #963;
    height: 600px;
    width: 150px;
    position: fixed;
    float: left;
    #footer {
    background-color: #963;
    height: 100px;
    width: 960px;
    #top_header {
    background-color: #EADCAE;
    height: 100px;
    width: 960px;
    </style>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container">
      <div id="top_header">Content for  id "top_header" Goes Here</div>
      <div id="top_menu_bar">
        <!--#include file="menu_bar_top.html" -->
      Content for  id "top_menu_bar" Goes Here</div>
      <div id="leftside_menu_bar">Content for
    id "leftside_menu_bar" Goes Here
    <!--#include file="menu_bar_left.html" -->
      </div>
      <p>Content for  id "container" Goes Here</p>
      <p> </p>
      <p> </p>
      <p> </p>
    </div>
    <div id="footer">Content for  id "footer" Goes Here</div>
    </body>
    </html>

    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="#">Bella Toscana</a></li>
      <li><a href="#">Brighton</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">GG Collection</a>
        <ul>
          <li><a href="#">Accessories</a></li>
          <li><a href="#">Bathroom</a></li>
          <li><a href="#">Canisters</a></li>
          <li><a href="#">Desktop</a></li>
          <li><a href="#">Dinnerware</a></li>
          <li><a href="#">Flatware</a></li>
          <li><a href="#">Ligthing</a></li>
          <li><a href="#">Serverware</a></li>
          <li><a href="#">Statuary</a></li>
          <li><a href="#">Wall Art</a></li>
        </ul>
      </li>
      <li><a href="#">Sid Dickens</a></li>
    <li><a href="#">Tyler Candles</a></li>
    <li><a href="#">Contact Us</a></li>
    </ul>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>

  • Retrieving and using nested xml

    If my xml is in the form of multiple nested "nodes?" then how
    can i go about serilizing them and retrieving them properly?
    Example, if my xml looked like this:
    <data>
    <value>value1</value>
    <value>value2</value>
    <value>value3</value>
    </data>
    then displaying the value would be easy to do in my Datagrid,
    i would just say use "myHTTPservice.lastResult.data.value" and it
    would display in the grid but if my data is more complex like this:
    <data>
    <heading>
    <name>name1</name>
    </heading>
    <heading>
    <name>name2</name>
    </heading>
    <heading>
    <name>name\3</name>
    </heading>
    </data>
    How would I in theory go about serializing the say "name"
    into an array my datagrid could use? if i say the dataprovider is
    "myHTTPservice.lastResult.heading.name then i dont get an array,
    how do say i want all the names found in the heading to be put in
    an array? do have to do this manually on result from my HTTPservice
    and if so any pointers would be good! thank you!

    I think you understand it pretty well. Just through the info
    on E4X and it will probably make a lot of sense to you now.
    Just keep in mind you aren't getting an "Array" or
    "ArrayCollection" but an XMLList which acts like an array where you
    can get its length, address the items using the [ ] operator, etc.
    When using an XMLList as a dataProvider, it would be better
    to convert it to an XMLListCollection so you can take advantage of
    data binding should you need to change the XML on the fly, such as
    editing nodes, adding nodes, or removing nodes. And you can use the
    Collection cursor views, filtering, and sorting.

  • Populating Spry Table using button action and Nested XML

    Ah, yet another question.
    So I have a catalog page with a Spry repeating table. The XML
    has 2 sets of nodes -- one for outfits and one for line sheets (the
    technical drawings for clothes). What i want to do is have the
    outfits show and populate the table to start off with, but
    re-populate with the line sheet info if a user clicks on a button.
    currently the page is set up and works perfectly by sucking
    in the XML and populating the table. What I can't seem to do is get
    the button (when clicked) to switch the outfit info with the line
    sheet info.
    I have the following
    // javascript:
    var siracusafall08 = new
    Spry.Data.XMLDataSet("fall_collection.xml",
    "collection/siracusa/outfits", { filterFunc: MyPagingFunc });
    var siracusaLS = new
    Spry.Data.NestedXMLDataSet(siracusafall08, "linesheet",
    {filterFunc:MyPagingFunc });
    siracusafall08.setColumnType("photoURL", "image");
    siracusafall08.setColumnType("lrgphoto", "image");
    var pageOffset = 0;
    var pageSize = 1;
    var pageStop = pageOffset + pageSize;
    //var dssiracusafall08 = new
    Spry.Data.XMLDataSet("fall_collection.xml", "collection/outfits", {
    filterFunc: MyPagingFunc });
    function MyPagingFunc(ds, row, rowNumber)
    if (rowNumber < pageOffset || rowNumber >= pageStop)
    return null;
    return row;
    function chooseLS()
    // no idea what to put here...
    function UpdatePage(offset)
    var numRows = siracusafall08.getUnfilteredData().length;
    if (offset > (numRows - pageSize))
    offset = numRows - pageSize;
    if (offset < 0)
    offset = 0;
    pageOffset = offset;
    pageStop = offset + pageSize;
    // Re-apply our non-destructive filter on dsStates1:
    siracusafall08.filter(MyPagingFunc);
    html
    <div spry:region="siracusafall08">
    <table>
    <tr spry:repeatchildren="siracusafall08">
    <td valign="top">{name}<br />{desc}</td>
    <td rowspan="8" valign="top" width="300"><img
    src="imx/{photoURL}"/></td>
    </tr>
    <tr spry:repeatchildren="siracusafall08">
    <td valign="top">{SKU1}<br />{SKU2}<br
    />{SKU3}</td>
    </tr>
    <tr spry:repeatchildren="siracusafall08">
    <td valign="top"><a href="imx/{lrgphoto}"
    target="_blank">enlarge</a></td>
    </tr>
    <tr spry:repeatchildren="siracusafall08">
    <td valign="top"><input type="image"
    src="../../imx/back.gif" onclick="UpdatePage(pageOffset -
    pageSize);" />
    <input type="image" src="../../imx/next.gif"
    onclick="UpdatePage(pageOffset + pageSize);" /><br
    /><br /><input type="button" value="filter"
    onclick="chooseLS();" /></td>
    </tr>
    <tr>
    <td height="200"> </td>
    </tr>
    </table>
    </div>
    XML
    <collection>
    <siracusa>
    <outfits>
    <photoURL>6648sm.jpg</photoURL>
    <lrgphoto>6648lg.jpg</lrgphoto>
    <SKU1>JS271SM</SKU1>
    <SKU2>PN109SM</SKU2>
    <SKU3></SKU3>
    <name>Siracusa Micro Crepe</name>
    <desc>Chestnut, Moss, Redwood, Black</desc>
    </outfits>
    <outfits>
    <photoURL>5237sm.jpg</photoURL>
    <lrgphoto>5237lg.jpg</lrgphoto>
    <SKU1>JS272SM</SKU1>
    <SKU2>LTK121SM</SKU2>
    <SKU3>PW112SM</SKU3>
    <name>Siracusa Micro Crepe</name>
    <desc>Chestnut, Moss, Redwood, Black</desc>
    </outfits>
    <outfits>
    <photoURL>5540sm.jpg</photoURL>
    <lrgphoto>5540lg.jpg</lrgphoto>
    <SKU1>JS272SM</SKU1>
    <SKU2>LTK121SM</SKU2>
    <SKU3>PW112SM</SKU3>
    <name>Siracusa Micro Crepe</name>
    <desc>Chestnut, Moss, Redwood, Black</desc>
    </outfits>
    <outfits>
    <photoURL>6276sm.jpg</photoURL>
    <lrgphoto>6276lg.jpg</lrgphoto>
    <SKU1>JL258SM</SKU1>
    <SKU2>PN100SM</SKU2>
    <SKU3></SKU3>
    <name>Siracusa Micro Crepe</name>
    <desc>Chestnut, Moss, Redwood, Black</desc>
    </outfits>
    <linesheet>
    <photoURL>5540sm.jpg</photoURL>
    <lrgphoto>5540lg.jpg</lrgphoto>
    <SKU1>JS128SM</SKU1>
    <SKU2>Mandarin collar jacket with box pleat
    cuff</SKU2>
    <SKU3>XS-XL</SKU3>
    <name>Siracusa Micro Crepe</name>
    <desc>Chestnut, Moss, Redwood, Black</desc>
    </linesheet>
    </siracusa>
    </collection>
    There's nothing in the documentation about using a button to
    repopulate a table. the Nested XML Data Sample page in the Spry
    documentation has been helpful in the past however this is more of
    a switch / toggle situation and frankly that kind of coding is a
    bit beyond my fine arts-trained skills.
    Any suggestions are greatly appreciated!

    Hi Bit Crusher,
    Sorry for the delayed response ...
    Looking at your setup, you can get rid of most of the code in
    collection.js since you are using a pageSize of 1 ... if displaying
    only one row of a data set is all you ever need, then you can get
    the equivalent functionality by just using a spry:detailregion and
    a couple of prev()/next() functions. For example:
    <script type="text/javascript">
    var siracusafall08 = new
    Spry.Data.XMLDataSet("fall_collection.xml",
    "collection/siracusa/outfits");
    siracusafall08.setColumnType("photoURL", "image");
    siracusafall08.setColumnType("lrgphoto", "image");
    var crepesfall08 = new
    Spry.Data.XMLDataSet("fall_collection.xml",
    "collection/crepes/outfits");
    crepesfall08.setColumnType("photoURL", "image");
    crepesfall08.setColumnType("lrgphoto", "image");
    function DSPrev(ds)
    var curRowNum = ds.getCurrentRowNumber();
    if (--curRowNum >= 0)
    ds.setCurrentRowNumber(curRowNum);
    function DSNext(ds)
    var curRowNum = ds.getCurrentRowNumber();
    if (++curRowNum < ds.getRowCount())
    ds.setCurrentRowNumber(curRowNum);
    </script>
    <div spry:detailregion="siracusafall08">
    </div>
    <div spry:detailregion="crepesfall08">
    </div>
    After you've simplified all that, the next thing I would do
    to get your linesheet switching working is to use "states". Take a
    look at these samples:
    http://labs.adobe.com/technologies/spry/samples/data_region/RegionStatesSample.html
    http://labs.adobe.com/technologies/spry/samples/data_region/StateMappingSample.html
    The first link is some basic background on states, but what
    should be of interest to you is the 2nd sample. What I would do is
    have a "styles" and a "linesheet" state in my region.
    Also since you are using nested XML data, you will need to
    access your <linesheet> data with a NestedXMLDataSet:
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html#Using NestedDataSets
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedDataSample.html
    --== Kin ==--

  • Replicating a gorgeous Spry menu in other pages not working

    Hi,
    I've created a gorgeous spry menu in one of my pages:
    http://agapemedia-international.com/test.html
    Works perfectly.
    Would like to copy this same menu over to the other pages of the site, so:
    1.  Copied the css <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />  into new html file
    2.  Copied the <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>  to the new html file
    3.  Surrounded all the spry menu - essentially nested <ul>'s - with a div for easy copying
    4.  Copied the div to the proper location in the new html file.
    Here is that new file:
    http://agapemedia-international.com/about2.html
    Everything looks fine, but when I hover over, no drop downs happen.  Oh, and the lovely Spry Menu Bar widget nor the blue tab that calls it up doesn't show up in Dreamweaver editor either.  Is there invisible data that doesn't appear in the html code that wasn't copied?
    Any brilliant ideas?
    Thanks a million!
    Peace,
    Ben
    PS:  I'm using Dreamweaver CS3 on a Powerbook G4

    I am having a similar problem, but pretty sure it is a newbie issue. I made a menu bar and then wanted to copy it to a second htm page.
    I first put the cursor in the div region of the code where I wanted it to go and added a stock spry menu. Then I deleted the div-ul-/div code and pasted the custom menu code in its place. it appears, but does not drop down and lost some of the color attributes. When I place the cursor over it  in split mode, I do NOT see the Spry menu bar: assts in the upper left corner of the menu like I see on the index.html page. I'd like to copy the menu from the index.html to multiple subsequent pages. What am I doing wrong? Everything looks identical to me...
    <link rel="stylesheet" href="coolstyle.css" type="text/css">
    <script language="JavaScript" type="text/javascript" src="javascripts.js"></script>
    <script language="JavaScript" type="text/javascript" src="pop-closeup.js"></script>
    <script src="../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    </head>
    <body bgcolor="#000000" text="#FFFFFF" class="pagebackground">
    <!-- PAGE TABLE -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="left" valign="top">
    <div id="banner"><img src="gallery/banner.gif" width="100%" height="50" alt="DogfishBay Studios" />
      <ul id="asts" class="MenuBarHorizontal">
      <li><a href="index.html" title="home page">Home</a>    </li>
      <li><a href="bio-studio.htm" title="About DogFishBay Studios" class="MenuBarHorizontal">Studio</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Musicians</a>
        <ul>
          <li><a href="bio-jules.htm" title="Juliane Poirier biographical information">Juliane Poirier</a>        </li>
          <li><a href="bio-ray.htm" title="Biographical information for Ray Burns">Ray Burns</a></li>
          <li><a href="bio-jeff.htm" title="Biographical Information for Jeff Powel">Jeff Powel</a></li>
          <li><a href="bio-chris.htm" title="Biographical information on Chris Rin">Chris Rin</a></li>
          <li><a href="#">Rod Lewis</a></li>
        </ul>
      </li>
      <li><a href="#" class="MenuBarItemSubmenu">Music</a>
        <ul>
          <li><a href="#" class="MenuBarItemSubmenu">Music by Style</a>
            <ul>
              <li><a href="samples1.htm" title="Rock and Roll!">Rock</a></li>
              <li><a href="samples2.htm" title="Folk">Folk</a></li>
              <li><a href="samples3.htm" title="Country">Country</a></li>
              <li><a href="samples4.htm" title="Latin">Latin</a></li>
            </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">Music by Artist</a>
            <ul>
              <li><a href="samples_jules.htm">Juliane Poirier</a></li>
              <li><a href="samples_ray.htm">Ray Burns</a></li>
              <li><a href="#">Steve Thomas</a></li>
              <li><a href="samples_chris.htm">Chris Rin</a></li>
              <li><a href="samples_rod.htm">Rod Lewis</a></li>
              <li><a href="#">Jeff Powel</a></li>
            </ul>
          </li>
          <li><a href="podcast.htm" title="Podcasts">Podcasts</a></li>
        </ul>
      </li>
      <li><a href="gallery-1.htm" class="MenuBarItemSubmenu">Xtras</a>
        <ul>
          <li><a href="gallery-1.htm" title="Band Photos">Photos</a></li>
          <li><a href="video.htm" title="Band Videos">Videos</a></li>
          <li><a href="scene.htm" title="Music Scene">Music Scene</a></li>
          <li><a href="reviews.htm">Reviews</a></li>
        </ul>
      </li>
      <li><a href="links.htm" title="Links" class="MenuBarItemSubmenu">Information</a>
        <ul>
          <li><a href="links.htm" title="Links">Links</a></li>
          <li><a href="site_map.htm" title="Site Map">Site Map</a></li>
          <li><a href="contact.htm" title="Contact information">Contact</a></li>
        </ul>
      </li>
    </ul>
    </div>
    <!-- STRIPE -->
    <table style="clear: both;"table cellpadding="0" cellspacing="0" border="0" width="100%" class="home-stripe"><tr><td align="left">
    <img src="picts/spacer.gif" width="10" height="2" alt="image"><br>
    </td></tr></table>
    <script language="JavaScript" type="text/javascript" src="header.js"></script>
    <!-- PICTURE TABLE -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ban-area"><tr><td>
    <img src="picts/bio.jpg" border="0" width="750" height="50" alt="image"><br>
    </td></tr></table>
    <!-- PICTURE TABLE -->
    <!-- SPLIT TABLE -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="whitespaceL printhide">
    <img src="picts/spacer.gif" width="1" height="10" class="whitespaceL" alt="image"><br>
    </td><td align="center" valign="top">
    <br><br>
    <!-- CONTENT TABLE -->
    <table cellpadding="0" cellspacing="15" border="0" width="400" class="textwidth"><tr><td align="left" valign="top">
    <!-- PARAGRAPH 1 -->
    <span class="title">
    History: Dogfish Bay Studios<br>
    <center>
    <img src="picts/biostudio.jpg" alt="add keywords here"><br>
    </center>
    </span>
    Dogfishbay Studios were started in December of 2008 following a gift of ProTools M-Powered 8 to me from my son, Greg.
    Presentient being that he is, he warned his mother that this  gift would probably be a very small part of the cost needed to set up the studio.
    The studio was set up to provide me and my friends a way to record the songs we’d written, sometimes decades earlier, and to share them with
    family and friends.  After three  years of recording we finally came to a point where we wanted to share the work with a broader audience
    and that desire precipitated the need to create a studio name, a website, and a whole new set of skills.
    <br><br>
    This work reflects the generous collaboration of friends and family. The sale of the music is to support the musicians, the songwriters and
    the continued survival of the studio. None of the contributors has been able to forgo the “day job” and all play for the love of it.
    We feel blessed by all those who have taken the time to listen to our music and hope, whether you purchase it or not, that it brings to
    the listener the kind of pleasure that it has brought to us in the making of it.
    <br>
    <span class="title">
    <br>
    </span>
    <br><br>
    <img src="picts/spacer.gif" width="10" height="10" class="textwidth" alt="image">
    <br><br>
    </td></tr></table>
    <!-- CONTENT TABLE -->
    </td><td class="whitespaceR printhide">
    <img src="picts/spacer.gif" width="1" height="10" class="whitespaceR" alt="image"><br>
    </td><td align="center" valign="top" class="sidebar">
    <!-- RIGHT SIDEBAR AREA -->
    <script language="JavaScript" type="text/javascript" src="sidebar.js"></script>
    <script language="JavaScript" type="text/javascript" src="sidebar-2.js"></script>
    <img src="picts/spacer.gif" width="150" height="10" alt="image"><br>
    </td></tr></table>
    <!-- SPLIT TABLE -->
    <!-- PAGE TABLE -->
    </td></tr><tr><td valign="bottom">
    <!-- FOOTER -->
    <table cellpadding="0" cellspacing="10" border="0" width="100%" class="footer">
    <tr><td align="left" valign="middle">
    <script language="JavaScript" type="text/javascript" src="copyright.js"></script>
    </td><td align="right" valign="middle">
    <script language="JavaScript" type="text/javascript" src="copyright-allwebco.js"></script>
    </td></tr></table>
    <!-- FOOTER -->
    </td></tr></table>
    <!-- END PAGE TABLE -->
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • Dreamweaver Spry Menu not working on I pad

    Hi
    I have built a website and currently have issues with the spry menu bar not working with the ipad i phones etc.
    When you press the link the dropdown menu does not appear.
    Any help would be greatly appreciated.
    The website is www.jkwindowsanddoors.co.uk and the link is the products in the spry menu bar.
    Many Thanks

    The Spry menu system was created prior to the advance of touch screens. The action that causes the Spry sub-menu to appear is the hover event, an event that does not exist in touch screen technology.
    What I am trying to say is that the Spry menu system cannot be used for touch screens. You are better off using pure CSS menus or jQuery menus.

  • Spry Menu Bar lost formating

    Hi,
    Using DW CS3, I was cleaning up my site and wanted to place
    my main css file in the css folder (for some reason, it was in the
    root folder). I assumed DW would keep all links, etc. in tact.
    Everything else is fine, including my horizontal Spry Menu Bar, but
    the vertical Spry Menu in my left sidebar lost all of it's
    formatting.
    I tried moving the file back but the link to the css, or
    whatever it is that formats the styling for this, is broken. Even
    deleting the Spry Menu Bar and inserting a new one has the same
    result - no formatting.
    In the code for the Spry Menu Bar discussed (I removed a
    number of irrelevent links):
    <script src="../SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css"
    rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {
    color: #FFFFFF;
    -->
    </style>
    <link href="../SpryAssets/SpryMenuBarVertical.css"
    rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" --><!--
    TemplateEndEditable -->
    </head>
    <body class="thrColFixHdr">
    <div id="container">
    <div id="header">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="../Contact-Us.html" rel="no
    follow">Contact Us</a></li>
    <li><a
    href="../FAQs.html">FAQs</a></li>
    <li><a href="../About-Us.html">About
    Us</a></li>
    </ul>
    <a href="../index.html"><img
    src="../Graphics/bannerimage.jpg" alt="BodyMindAwakening.com"
    width="890" height="275" border="0" /></a>
    <!-- end #header --></div>
    <div id="sidebar1">
    <ul id="MenuBar2" class="MenuBarVertical">
    <li><a href="../index.html">Home</a>
    </li>
    <li><a href="../Reading.html">Recommended
    Reading</a></li>
    </ul>
    <h3 class="style1"> </h3>
    <!-- end #sidebar1 --></div>
    Is this enough to go on to figure this out?
    The CSS folder is in the root folder. The Spry Assets folder
    is in the root folder. The .css file "thrColFixHdr.css" is the one
    I moved from the root folder to the CSS folder.
    Thanks for any help or suggestions!

    Add the following to each page, or to your template
    <script src="SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
        var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
        if(a.href == window.location){
            Spry.Utils.addClassName(node,"current");
    Spry.Utils.addLoadListener(InitPage);
    </script>
    making sure that you do have SpryDOMUtils.js in the SpryAssets folder.
    Because the above place a class of current in the list item, you will need to change the selctor to and add
    ul.MenuBarHorizontal li.current a {
        color: #F4F4F4;
        background-color: #8FC8D1;
    Gramps

  • Horizontal Spry Menu Breaks in IE6

    I have created an horizontal spry menu using the spry widget
    in DreamWeaver CS3. I would like the width of each menu item to
    adjust to the text (width: auto;) and that works fine in current
    browsers (FireFox, IE7, Opera, Netscape) but in IE6 the menu items
    are displayed vertically instead of horizontally. As soon as I give
    them a width, it displays appropriately in IE6, but that changes
    the look. You can see the page in question at
    http://www.inachordwebdesign.com/ccc/test.html
    Is there any way to work around this problem with the older
    IE versions?
    Any help would be greatly appreciated! Please let me know if
    I need to upload any code. This is one of my first posts, so I'm
    not sure what all I need to post.
    Thanks!

    I have updated the Spry Assets as suggested, but still have
    the same results. Removing the float:left for the menu bar doesn't
    help with the item alignment in IE6 and actually introduces a
    problem in the current version of Firefox, so that isn't the
    problem either.
    Any other thoughts? The only thing that seems to force the
    menu bar to display horizontally in IE is to have fixed widths for
    the list items in the unordered list (ul.MenuBarHorizontal li). As
    soon as I change that from a defined width to auto, or remove the
    width designation altogether, it falls back to a vertical
    arrangement in IE6, though it works in all the more recent browsers
    just fine. We'd rally prefer to let the list items size
    automatically, but if there is no way around it, I'll have to try
    to replicate that effect by assigning a different width to each
    item. That will add a lot of extra code, unfortunately.
    Thanks.

  • Problems with IE and Spry menu

    I have created a horizontal spry menu using DW CS3 for Mac.
    When viewed with IE for the PC, a couple of the drop down menus fly
    up completely unattached to the menu bar and the menu bar is
    reversed left to right. Does anyone have a solution to this
    problem. My menu can be viewed at
    http://www.syconline.org/HomePage.shtml
    Thanks,

    Just posted a similar problem today.
    Did you ever git a fix for this?
    I notice that I'm the first to reply to your query which was posted some time ago?
    Best regards.

  • Dreamweaver / Spry Menu / iWeb question

    Hi,
    I'll try to keep this brief.  I'm not a talented web page designer... I know my way around iWeb and have poked around a bit in Dreamweaver.
    In Dreamweaver I've created a simple Spry horizontal dropdown menu.  I'd like to add that menu bar I've made into an iWeb page using "add html" snippet.   I can't seem to get to work though.  I am aware that Dreamweaver creates a folder called "SpryAssets" that is necessary for this to work, and I've attempted to move it into my iWeb root folder but still no success.
    A) Is this even possible?
    B) Can anyone walk me through how I can merge a Dreamweaver Spry Menu bar into an iWeb snippet?
    Many thanks if you can give this a quick whirl and see if its possible.

    Post-published pages do not show up in iWeb. iWeb is not an html editor that displays html pages, it generates html pages upon publish. So no. the page would not be visible in iWeb and anytime you made a change to your iWeb page you would need to publish the site, open the generated html page, and edit the html to add the spry menu.
    As you've mentioned you have already created the spry menu so you have the spry menu code. Do as I mentioned in the first post: create a text box with easy to find words, publish, open the html file, replace CODEGOESHERE with your spry menu code. Add linked js and css to head of iWeb-generated html page. An example of the code to replace with your spry menu code would look like this:
    <div>CODEGOESHERE</div>
    replace CODEGOESHERE with your spry menu code. Then in head add links to spry .js and css
    iWeb is a toy, dreamweaver is a professional tool used to develop prototypes of professional websites. You are looking for a bridge between the two which will become cumbersome. I recommend that you drop iWeb, learn html and css and use DW for your web development needs.

Maybe you are looking for

  • Project Pro hangs while opening a schedule from Project 2010 server.

    Hi, We have an issue with opening a schedule from Project server 2010. Project client is not responding. when we try to open schedule in PWA. I am getting unable to open file do you want to open in default view. No matter which view I choose keep get

  • How can I type Korean characters with Firefox 4?

    I upgraded to Firefox 4 and now I have difficulty typing Korean characters. When I switch my keyboard to Korean and start typing, the characters go to a bar on the bottom of the browser. It is not even a bar for inserting text. There is no insert but

  • How to list the vendors with CIN details.

    Hi all. I will get list of vendors using MKVZ or XKVZ, but this report does not contain CIN details for vendors. how can i get vendor list with CIN details..plz help me thanks ramesh reddy

  • Contacts problem after IOS5 update.

    Anybody here having problems with their contacts? After updating to IOS5 I can no longer edit my contacts. The " +  " icon that appears at the upper right corner of the screen before is now missing. Anyone here having a similar problem?

  • Trying to post a question and receiving: You are not allowed to create or update this content

    I am a newbie and am trying to post a question to the support communities and received this reply:"You are not allowed to create or update this content" My question: Help! Not all my incoming mail messages are going to my home computer account. Some