Spry xml dataset / IE / Phatfusion Multibox

I try to use spry xml data set with phatfusion multibox.
I use multibox script to open a PHP page with query string
insides spry:region.
It has problem on this application on IE either 6 and 7. But
works fine in Firefox
The requested php page just open in a new window.
I tested to relocate the dummy scripts for multibox outsides
spry:region, the script do works.
How to solve the problem ! Help please

Hi bsyyu,
First, you might want to validate your markup because I see
that you have several unclosed tags and a missing title tag.
To solve the problem, you'll have to create your multibox
object inside an observer for the region.
Replace your code inside the region:
<script
type="text/javascript">
var ben = {};
window.addEvent('domready', function(){
ben = new MultiBox('mb', {descClassName: 'multiBoxDesc'});
</script>
with this code, put in a script in the page head:
var obs = new Object;
obs.onPostUpdate = function(notifier, data){
var ben = new MultiBox('mb', {descClassName:
'multiBoxDesc'});
Spry.Data.Region.addObserver('events', obs);
--Florin TUDOR

Similar Messages

  • How to show an entry with specific ID from spry xml dataset?

    I have a spry xml dataset, can I show only one record
    specified by, say, unique ID?

    yeah, I first posted this one, then found out that my other
    message was replied:)

  • Spry xml datasets can't recognise images

    Been trying all day to load a spry xml dataset with image
    information into a table using the wizard. problem is, you can't
    tell the wizard that the data in one of the columns is the path to
    an image, so it sees it as a string and just sticks the path in the
    table. I tried putting it in as html rather than string but really
    I am firing into the dark here!
    What have I missed?

    thanks for the reply. I found the issue in the path string,
    along with having to edit the html tag directly, which I wasn't
    expecting, being used to DW doing it all for me! I found a lot of
    the answer here:
    http://www.csupomona.edu/~llsoe/42101/css/sprytables.htm
    At least it stopped me being scared of html!

  • SPRY XML Dataset Get Schema

    Currently when I try and add a SPRY XML Dataset and hit the Get Schema button I get "Unable to locate or parse the XML Source (-1,-1). I created the XML from the Export recordset to XML tool in the Developer Toolbox. I can't seem to figure out what I am missing. Anyone else having this problem as well. It use to work then I think my system did some update from Adobe and since has stopped working. Any assistance is greatly appreciated. Thanks.

    Hello,
    The error usually means that the XML source that you choose within Spry XML Data Set interface is not valid.
    So you should check the XML source to see if it returns a valid XML.
    Regards,
    Ionut

  • Spry XML Dataset Video Gallery Question

    Hi there,
    We are trying to create a video gallery using a Spry XML Dataset.
    It's currently working in FF and Safari, but not working in IE6-7 or Opera.
    Here is a link... http://www.rightsidedesign.com.au/test/tv.html
    IE seems to display the content for a second, but it doesn't load the videos or text, but then it disappears.
    The elements being fed via the dataset are the video, video description (at bottom right of video) and thumbnails
    Can anyone give us a hint as to what we might be doing wrong??
    We followed the tutorial at...   http://www.coremediadesign.co.uk/web_design_tutorials/dreamweaver_tutorials/spry_image_gal lery_adobe.html
    and replaced the image with an FLV player.
    Thanks for your help in advance!

    Hi there,
    We are trying to create a video gallery using a Spry XML Dataset.
    It's currently working in FF and Safari, but not working in IE6-7 or Opera.
    Here is a link... http://www.rightsidedesign.com.au/test/tv.html
    IE seems to display the content for a second, but it doesn't load the videos or text, but then it disappears.
    The elements being fed via the dataset are the video, video description (at bottom right of video) and thumbnails
    Can anyone give us a hint as to what we might be doing wrong??
    We followed the tutorial at...   http://www.coremediadesign.co.uk/web_design_tutorials/dreamweaver_tutorials/spry_image_gal lery_adobe.html
    and replaced the image with an FLV player.
    Thanks for your help in advance!

  • Spry xml dataset driven page and search engines

    If a page uses Spry xml dataset to present products to a
    visitor, what do google and yahoo crawlers see in that page?
    I'm asking because i plan to rewrite our products' static
    pages using spry xml dataset, and i'd like to ensure crawlers see
    the products. I haven't looked much, yet, into this pry capability,
    but the products page will most probably be paginated (not sure if
    possible in this capability) since there are hundreds of products.
    currently, our static html pages generated good conversions
    into purchases from google and yahoo searches.
    It would be great if there is a real-life website that uses
    this spry capability and has their pages appear in those search
    engines.
    thanks.

    If a page uses Spry xml dataset to present products to a
    visitor, what do google and yahoo crawlers see in that page?
    search bot do not read / understand javascript. So they would
    not index it.
    Its a commen point of failure of the ajax techniques, Spry
    has a handy solution for it (spry:content) wich will allow u to
    overwrite 'content' if javascript is enabled so and bots will just
    see the static page.

  • Spry XML Dataset reload

    I am new to DW and have a question I am hoping someone will
    answer. I am using Spry.Data.XMLDataSet found in SpryData.js. I
    have it working correctly, but if I change the XML content and
    attempt to reload the page using this data it does not show the
    changes. I have declared a dsObj called dsXMLdata that the
    XMLDataSet method loads. How can I cause the dsXMLdata to reload
    from the file. I would assume this would happen each time the
    Spry.Data.XMLDataSet method is called, but I never see my changes
    unless I rename the file and read the newly named file.. Kind of a
    PIA.
    Thanks.,
    Pat

    I am brand new to Spry, and ran into the same problem. I
    believe you will have the functionality you are looking for if you
    use the subpaths command in your dataset declaration. Otherwise,
    your XML dataset will be limited to the data nodes in the first
    tier of the <root> node (ie. only channel) You can try code
    like this:
    var ds1 = new Spry.Data.XMLDataSet("test.xml", "root", {
    subPaths: ["channel/data1","channel/data2"] });
    then access through the tags {ds1::channel/data1} ....
    If you download the prerelease 1.5 spry package it has the
    API docs with samples. One of the samples is about nested XML data
    structures and is a good source to find out what you can do.
    Hope this helps
    Josh

  • Passing a Spry XML Dataset to a function

    I am very much a noob at this.  How would I pass my XML dataset to a function so that the function would check a "date" field in the XML file and color the corresponding date cell in a YUI calendar?  I have looked through the YUI Forums, but couldn't find any good examples.  I am making a calendar of events that uses a calendar to filter the events in my XML file.  I want the calendar to highlight the dates that have an event scheduled, so the users get a visual pointer to when events are scheduled.  Here is my 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>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryDataExtensions.js" type="text/javascript"></script>
    <script src="yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
    <script src="yui/2.6.0/build/calendar/calendar-min.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryDOMUtils.js" language="javascript" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsMDEvents = new Spry.Data.XMLDataSet("schedule.xml", "events/event", {sortOnLoad: "date", sortOrderOnLoad: "ascending"});
    var dsEvents = new Spry.Data.XMLDataSet("schedule.xml", "events/event", {sortOnLoad: "date", sortOrderOnLoad: "ascending"}  );
    dsEvents.setColumnType("date", "date");
    dsEvents.setColumnType("@id", "number");var thisDate = new Date();
    var todaysDate = mydateFormat(thisDate);
    function pad(v)
      return (v<10?"0"+v:v);
    function mydateFormat(inDate)
      var myData = inDate;
      var gToday = new Date(myData);
      var tToday = pad(gToday.getMonth()+1).toString() + "/" + pad(gToday.getDate()).toString() + "/" + gToday.getFullYear().toString();
      return (tToday);
    }//-->
    </script>
    <link href="yui/2.6.0/build/fonts/fonts-min.css" rel="stylesheet" type="text/css" />
    <link href="yui/2.6.0/build/calendar/assets/skins/sam/calendar.css" rel="stylesheet" type="text/css" /><link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    </head><body>
    <div id="Schedule">
      <div id="calendarDiv"></div>
      <script type="text/javascript">
    // BeginWebWidget YUI_Calendar: yuicalendar1
      YAHOO.namespace("calendar");  (function() {
        var cn = document.body.className.toString();
        if (cn.indexOf('yui-skin-sam') == -1) {
          document.body.className += " yui-skin-sam";
      YAHOO.calendar.init = function() {
    YAHOO.calendar.cal1 = new YAHOO.widget.CalendarGroup("cal1", "CalendarDiv", {PAGES:3});    // The following event subscribers demonstrate how to handle
        // YUI Calendar events, specifically when a date cell is
        // selected and when it is unselected.
        // See: http://developer.yahoo.com/yui/calendar/ for more
        // information on the YUI Calendar's configurations and
        // events.
        // The YUI Calendar API cheatsheet can be found at:
        // http://yuiblog.com/assets/pdf/cheatsheets/calendar.pdf
        //--- begin event subscribers ---//
        YAHOO.calendar.cal1.selectEvent.subscribe(selectHandler, YAHOO.calendar.cal1, true);
        YAHOO.calendar.cal1.deselectEvent.subscribe(deselectHandler, YAHOO.calendar.cal1, true);
        //--- end event subscribers ---//
    function dateHighlightRenderer(workingDate, cell) {
       var isHighlighted = false;
       var date = workingDate.getMonth()+1 + "/" + workingDate.getDate() + "/" + workingDate.getFullYear();
       /*if (rows["date"].search(date) != -1) {
      isHighlighted = true;
       if (date) {
      isHighlighted = true;
       if (isHighlighted) {
      YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
    //YAHOO.calendar.cal1.addRenderer("11/14/2009, 11/1/2009, 11/29/2009, 11/30/2009", YAHOO.calendar.cal1.renderCellStyleHighlight1);
    for (var i = 1; i <= 7; i++) {
       // Attach to the Weekday, instead of individual dates/ranges, to improve performance.
       YAHOO.calendar.cal1.addWeekdayRenderer(i, dateHighlightRenderer);
    YAHOO.calendar.cal1.render();
    var todayFilterFunc = function(dsMDEvents, row, rowNumber)
       if (row["date"] >= todaysDate)
       return row; // Return the row to keep it in the data set.
    return null; // Return null to remove the row from the data set.
    dsMDEvents.filter(todayFilterFunc);
    }  function selectHandler(event, data) {
      // The JavaScript function subscribed to yuicalendar1.  It is called when
      // a date cell is selected.
      // alert(event) will show an event type of "Select".
      // alert(data) will show the selected date as [year, month, date]. 
      var formattedDate = pad(data[0][0][1]) + "/" + pad(data[0][0][2]) + "/" + data[0][0][0];
      var dateFilterFunc = function(dsMDEvents, row, rowNumber)
    if (row["date"].search(formattedDate) != -1)
       return row; // Return the row to keep it in the data set.
    return null; // Return null to remove the row from the data set.
      dsMDEvents.filter(dateFilterFunc); // Filter the rows in the data set.
      };  function deselectHandler(event, data) {
      // The JavaScript function subscribed to yuicalendar1.  It is called when
      // a selected date cell is unselected.
      };      // Create the YUI Calendar when the HTML document is usable.
      YAHOO.util.Event.onDOMReady(YAHOO.calendar.init);
    // EndWebWidget YUI_Calendar: yuicalendar1
      </script>
    <div class="MasterDetail">
      <div spry:region="dsMDEvents" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="dsMDEvents" spry:setrow="dsMDEvents" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{date}<br />
          {name}<br />
          {starttime} - {endtime}</div>
      </div>
      <div spry:detailregion="dsMDEvents" class="DetailContainer">
        <h2 class="DetailColumn">{name}</h2>
        <p class="DetailColumn"><strong>Date:</strong> {date}<br />
        <strong>Time:</strong> {starttime} - {endtime}</p>
        <p class="DetailColumn"><strong>Where:</strong> {location}<br />
        <strong>Type:</strong> {type}</p>
        <p class="DetailColumn"><strong>Contact:</strong> {contact}</p>
      </div>
      <br style="clear:both" />
    </div>
    </div>
    </body>
    </html>
    and here is a snipet of my xml file:
    <?xml version="1.0" encoding="utf-8"?>
    <events>
    <event id="1">
      <name>Dreamweaver CS4 Intermediate</name>
      <date>10/15/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 1</location>
      <type>Training</type>
      <contact>Contact 1</contact>
    </event>
    <event id="2">
      <name>InDesign CS4 Advanced</name>
      <date>11/14/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Training</type>
      <contact>Contact 1</contact>
    </event>
    <event id="3">
      <name>Flex CS4 Data Services</name>
      <date>10/15/2009</date>
      <starttime>1:00 pm</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Meeting</type>
      <contact>Contact 2</contact>
    </event>
    <event id="4">
      <name>Another Dreamweaver CS4 Intermediate</name>
      <date>11/30/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 1</location>
      <type>Training</type>
      <contact>Contact 1</contact>
    </event>
    <event id="5">
      <name>Another InDesign CS4 Advanced</name>
      <date>11/29/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Training</type>
      <contact>Contact 3</contact>
    </event>
    <event id="6">
      <name>Another Flex CS4 Data Services</name>
      <date>11/01/2009</date>
      <starttime>1:00 pm</starttime>
      <endtime>5:00 pm</endtime>
      <location>Room 2</location>
      <type>Meeting</type>
      <contact>Contact 2</contact>
    </event>
    <event id="7">
      <name>More Training</name>
      <date>11/02/2009</date>
      <starttime>8:00 am</starttime>
      <endtime>10:00 am</endtime>
      <location>Room 3</location>
      <type>Training</type>
      <contact>Contact 4</contact>
    </event>
    <event id="8">
      <name>Another Training</name>
      <date>10/25/2009</date>
      <starttime>9:00 am</starttime>
      <endtime>11:00 am</endtime>
      <location>Room 3</location>
      <type>Training</type>
      <contact>Contact 4</contact>
    </event>
    <event id="9">
      <name>Some More Training</name>
      <date>12/02/2009</date>
      <starttime>1:00 pm</starttime>
      <endtime>3:00 pm</endtime>
      <location>Room 3</location>
      <type>Training</type>
      <contact>Contact 4</contact>
    </event>
    </events>
    The function "dateHighlightRenderer" is where I am running into the problem.  How do I code this so that "dateHighlightRenderer" can read the "date" field in my XML file?

    I have tried the getData() function for this.  However, I am not sure if I am using it right:
    var d = dsMDEvents.getData();
    for (var i = 0; i < d.length(); i++) {
       var day = d[i]["date"];
       YAHOO.calendar.cal1.addRenderer(day, dateHighlightRenderer);
    When I run this for loop, my calendar will not appear on the page.  Any suggestions?

  • Spry XML dataset + PHP problem

    I have installed Dreamweaver CS3 and created a simple page
    that receives a XML dataset from a PHP page. I was not able to
    display any data in either FF or IE (just got a blank page). I then
    downloaded the 1.5 pre-release and discovered the Data Set Explorer
    which worked well in FF but doesn't do anything in IE. Then I
    copied SpryData.js and xpath.js to my sites' SpryAssets directory,
    overwriting the 1.4 files and my simple page worked in FF,
    but still NOT in IE6/7. I then uploaded the pages to a
    remote server and tested on another PC, but it still doesn't work.
    If I replace the php file with a XML dataset it works on both FF
    and IE. Can someone please look at the
    test page and tell me what
    I am missing? The PHP page that feeds the XML can be viewed
    here

    Thanks for the reply Kin, I also had an idea that it might be
    the headers. When I copied the example from
    here
    the
    header('Content-type:
    text/xml'); line was commented out by mistake! Thanks for
    your help, it's working now!

  • Ajax load spry/xml dataset....

    I'm a noob. And a very frustrated one.
    I am using Ajax to load an external page into my main site.
    The external page has XML/Spry data attached to it. The page loads
    fine when executing the Ajax request, but the page will not display
    the XML data. Any ideas? Do I need to embed the xml? How do I
    attach the xml to my main page?

    Do the scripts get loaded when u do the request?, is the page
    working when u don't do a request?
    Got a url to show? or code snippet? Using 1.6.1?

  • SPRY XML Dataset...add node filter

    This is working fine except I want to only show records whose value is "1" for the XML node called "node".
    Below is the HTML file followed by the XML file
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="../SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("PSY303.xml", "VitalSource/URL", { sortOnLoad: [ "node", "sort"] });
    </script>
    </head>
    <body>
    <div spry:region="ds1" class="StackedContainers">
      <div spry:repeat="ds1" class="RowContainer">
        <div class="RowColumn"><a href="{link}" target="_blank">{title}</a></div>
      </div>
    </div>
    </body>
    </html>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <VitalSource>
    <URL>
      <node>1</node>
      <sort>2</sort>
      <title>Node 1 Link Test 2</title>
      <link>http://www.cnn.com</link>
    </URL>
    <URL>
      <node>1</node>
      <sort>1</sort>
      <title>Node 1 Link Test 1</title>
      <link>http://www.msnbc.com</link>
    </URL>
    <URL>
      <node>2</node>
      <sort>1</sort>
      <title>Node 2 Link Test 1</title>
      <link>http://www.yahoo.com</link>
    </URL>
    <URL>
      <node>2</node>
      <sort>2</sort>
      <title>Node 2 Link Test 2</title>
      <link>http://www.google.com</link>
    </URL>
    <URL>
      <node>2</node>
      <sort>3</sort>
      <title>Node 2 Link Test 3</title>
      <link>http://www.google.com</link>
    </URL>
    <URL>
      <node>3</node>
      <sort>1</sort>
      <title>Node 3 Link Test 1</title>
      <link>http://www.yahoo.com</link>
    </URL>
    </VitalSource>

    Have a look at XPath filtering here http://labs.adobe.com/technologies/spry/samples/data_region/XPathFilteringSample.html and herehttp://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html
    Gramps

  • Spry XML dataset help needed

    Hope someone can help me --
    I've been having some success bringing an XML data set into a table using Spry, but was looking for some help on how to do something more specific.
    I have a small group of data with the following headings: State, number, credits, date. I'd like to create a two-row table with the top row as the column headings and a second row that populates based on a drop-down list for the state.  
    For example:
    State
    Number
    Credits
    Date
    Alabama (drop down arrow)
    589654
    7
    4/29/2009
    Then, when you click the drop down arrow and choose New York, the other fields will fill in from that XML item
    State
    Number
    Credits
    Date
    New York (drop down arrow)
    XL7654
    6.4
    5/3/2009
    Can anyone help?

    Hi eschillay,
    Assuming you had a data set with column names that matched the headers in your table, it would look something like this:
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("states.xml", "/states/state");
    </script>
    <div spry:detailregion="ds1">
    <table>
      <tr>
        <th>State</th>
        <th>Credit</th>
        <th>Numbers</th>
        <th>Date</th>
      </tr>
      <tr>
        <td>
          <select spry:repeatchildren="ds1" spry:choose="choose" onchange="ds1.setCurrentRowNumber(this.selectedIndex)">
            <option spry:when="{ds_RowNumber} == {ds_CurrentRowNumber}" selected="selected" value="{State}">{State}</option>
            <option spry:default="default" value="{State}">{State}</option>
          </select>
        </td>
        <td>{Credit}</td>
        <td>{Numbers}</td>
        <td>{Date}</td>
      </tr>
    </table>
    </div>
    --== Kin ==--

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

  • Spry xml data set, accessing specific rows

    Hello. I've been trying to build a website using Spry XML
    Data Sets, and while I've accomplished my goals for now, I don't
    think the solution I came up with is the best.
    The website consists of several areas that show projects.
    Each project has several fields that are to be filled with content
    retrieved from the xml files, but the projects are not all exactly
    alike and some have specific fields that others don't require.
    All the info is available in several languages, so for now
    I've created an xml file for each one. An xml file could be like
    Code Part1. (Why I can't add several code snippets along the post
    baffles me. I mean, I can't, right?)
    This dataset, for simplicity purposes, is not dependent on
    the language (Code Part2).
    And then there are the content areas (Code Part3).
    So as you see, each project has its own structure. This makes
    using spry:repeat a not very effective method for filling in all
    the content. Ideally I should be able to access each row in the
    dataset through some sort of value, like id, or one of its
    children's values. The ds_RowID depends on the row order, so unless
    there's another way to use it, it doesn't solve my problem.
    Here's what I've come up with (Code Part4).
    This works (in FF3 OSX, at least), although there are some
    other problems that might make it necessary to create a spry:region
    (or at least use spry:repeat) for each field. Anyway, it sounds
    silly and wasteful to go through every row of the dataset everytime
    for each of the fields that need to be filled.
    My hope is that I'm ignorant of some much better method of
    achieving my goals, something more direct and elegant.
    Can anyone help me out with this? Thank you very much in
    advance.

    Hi there
    You are indeed absolutely correct a spry region should have been shown, my appologise for that, the code is wrapped in a standard spry region.
    That being said i have used a work around in the SQL SELECT statement of the xmlExportObj, Recordset to find the information required without having to do any IF, ELSE on the page.
    Many thanks for your reply and for pointing out my mistake in how I had presented my question.
    My next question is to follow seperately
    Regards
    Ray

  • XML dataset doesn't change in detail area

    Thanks in advance for any help you might be able to lend...
    My accordion layout has five panels all of which are using
    different XML datasets. I have been wracking my brain to figure out
    how to have multiple master data regions filter into one detail
    region - I have one setup correctly, but when I change the focus on
    the accordion menu, the other XML data is not displayed in the
    detail region.
    I understand why they do not populate, but I cannot figure
    out what to include to have all data regions filter into the detail
    area.
    Thanks again in advance!
    http://www.cateringlyons.com/menus.php

    "luke14free" <[email protected]> wrote in
    message
    news:f3bdm8$gsu$[email protected]..
    > I am a new AJAX spry developer and i would like to ask
    you a question.
    > I have done a code that modifies the content of an xml
    file after user
    > writes
    > something in a box. The code works(is written in php)
    and my problem is
    > that:
    > the xml dataset in the page doesn't refresh. I mean if I
    add something to
    > the
    > xml file the page isn't affected by the changes and
    continues to display
    > the
    > old xml-data. I checked manually the xml file and it's
    correctly writed
    > and
    > closed, and the file has the right permiossions. Can you
    tell me why?
    http://livedocs.adobe.com/en_US/Spry/1.4/WS95A48911-209C-4075-A90A-4FB06F6DAAA4.html
    Massimo Foti, web-programmer for hire
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com

Maybe you are looking for