Sort Indicators on Spry Data Table

Hello,
I was wondering if there is any way to add "indicators" to a
Spry data table to show the sort direction? If not, maybe a request
to add them or is there a .js way to add them easily.
Thanks in advance,
Matt

OK, here is my solution to my table sort indicators question
after being pointed in the right direction by Donald. I hope this
will help someone out and save time.
Thanks, Matt
First:
/* This function takes onclick sorted column and adds sort
indicator based on Asc/Desc. Need to do alittle debugging so I left
some alerts in to make sure Asc/Desc was working */
function sortInd(idvar) {
/*Used these hidden divs because passed values seemed to be
opposite and not updating */
var sortOrd =
document.getElementById("curSortOrd").innerHTML;
var sortCol =
document.getElementById("curSortCol").innerHTML;
/* alert(sortOrd + " " + sortCol); */
charToRemove = '"';
regExp = new RegExp("["+charToRemove+"]","g");
var newSortOrd = sortOrd.replace(regExp,"");
/* alert(newSortOrd); */
var imageasc = new Image();
imageasc.src = "../../html/mattm55/images/asc.gif"
imgasc = "<img src=" + imageasc.src + ">";
var imagedes = new Image();
imagedes.src = "../../html/mattm55/images/des.gif"
imgdes = "<img src=" + imagedes.src + ">";
if ( newSortOrd == "ascending" ) {
document.getElementById(idvar).innerHTML = idvar + " " +
imgasc;
if ( newSortOrd == "descending" ) {
document.getElementById(idvar).innerHTML = idvar + " " +
imgdes;
Second part:
<th onclick="dsUsers.sort('name','toggle');
sortInd('Name');"><div
id="Name">Name</div></th>
<th
onclick="dsUsers.sort('email','toggle');sortInd('Email');"><div
id="Email">Email</div></th>
..... and so on for table.....
Last part: Seemed to need this as when passing "asc/des" to
js it seemed to not update or be reveresed so I got around that by
some hidden divs.
<th><div id="curSortCol" style="display:
none;">"{dspsmUsers::ds_SortColumn}"</div>
<div id="curSortOrd" style="display:
none;">"{dspsmUsers::ds_SortOrder}"</div></th>

Similar Messages

  • Spry Data Table - XML file refresh

    I just started using dynamic spry data tables in Dreamweaver
    CS3 on an .htm page. The table data is calling an xml file that
    resides in the same folder as the .htm file on the web server. I
    cannot get the data in the table to automatically update/refresh
    when the xml file has been updated on the server. I added the
    following code:
    useCache:false,loadInterval:5000
    Here is the code I have on the .htm page:
    &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0
    Transitional//EN&quot; &quot;
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
    &lt;html xmlns=&quot;
    http://www.w3.org/1999/xhtml&quot;
    xmlns:spry=&quot;
    http://ns.adobe.com/spry&quot;&gt;
    &lt;head&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot;
    content=&quot;text/html; charset=UTF-8&quot; /&gt;
    &lt;title&gt;Untitled Document&lt;/title&gt;
    &lt;script src=&quot;../SpryAssets/xpath.js&quot;
    type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script
    src=&quot;../SpryAssets/SpryData.js&quot;
    type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script
    type=&quot;text/javascript&quot;&gt;
    &lt;!--
    var dstest = new
    Spry.Data.XMLDataSet(&quot;hydroplants.xml&quot;,
    &quot;dataroot/HYDROPLANTS/HYDROPLANT&quot;,{sortOnLoad:&quot;HYDROPLANTID&quot;,sortOrde rOnLoad:&quot;ascending&quot;,useCache:false,loadInterval:5000});
    //--&gt;
    &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;div spry:region=&quot;dstest&quot;&gt;
    &lt;table&gt;
    &lt;tr&gt;
    &lt;th
    spry:sort=&quot;HYDROPLANTID&quot;&gt;HYDROPLANTID&lt;/th&gt;
    &lt;th&gt;Headwater&lt;/th&gt;
    &lt;th&gt;RESOURCE2&lt;/th&gt;
    &lt;th&gt;RESOURCE3&lt;/th&gt;
    &lt;th&gt;RESOURCE4&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr spry:repeat=&quot;dstest&quot;
    spry:setrow=&quot;dstest&quot;&gt;
    &lt;td&gt;{HYDROPLANTID}&lt;/td&gt;
    &lt;td&gt;{Headwater}&lt;/td&gt;
    &lt;td&gt;{RESOURCE2}&lt;/td&gt;
    &lt;td&gt;{RESOURCE3}&lt;/td&gt;
    &lt;td&gt;{RESOURCE4}&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;/div&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    Any help would be appreciated.
    Thanks,
    Chris

    You've closed the context, before evening calling getXML
    13 DBMS_XMLGEN.closeContext(Ctx);
    14 xml := DBMS_XMLGEN.getXML(Ctx);

  • Spry data table with photo thumbs, that open larger images and more thumbs when clicked

    Hi,  I'm trying to make a page that has a spry table that has car listings, make model etc... i want that info in the table area, with a thumbnail. when you click on the line in the table for a particular car, i want a window to open with thumbnails and larger pic. I have not been able to find how to get the window to open from the table info...it needs to be easily changeable, for instance as cars are sold, to remove old ones and add new ones with pics...I cant find any tutorials that deal with something like that...if you could point me in the right direction i'd appreciate it

    hi
    well, first, I can only get the text information to show up in the table, the pics do not. no link, no pic nothing, just blank. I did the add spry data, chose my xml file, with schema in the file. chose the stacked container with spotlight, which is for pics according to adobe, loads ok. my xml file is this
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:od="urn:schemas-microsoft-com:officedata">
    <xsd:schema>
    <xsd:element name="dataroot">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="Cars" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="generated" type="xsd:dateTime"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Cars">
    <xsd:annotation>
    <xsd:appinfo>
    <od:index index-name="PrimaryKey" index-key="ID " primary="yes" unique="yes" clustered="no" order="asc"/>
    <od:tableProperty name="Orientation" type="2" value="0"/>
    <od:tableProperty name="OrderByOn" type="1" value="0"/>
    <od:tableProperty name="NameMap" type="11" value="CswOVQAAAACc6U1USJAMRI0VA+hJZ3tPAAAAALGkyOr3xONAAwEAACAIRQVDAGEA
    cgBzAAAAAAAAAEj6ypGxIwNDnryyCm/b7+IHAAAAnOlNVEiQDESNFQPoSWd7T0kA
    RAAAAAAAAAASmFZWi+DCS7sJb9DZmGcBBwAAAJzpTVRIkAxEjRUD6Elne09NAGEA
    awBlAAAAAAAAAHusgDcg7zdMsa3wpnM6LF0HAAAAnOlNVEiQDESNFQPoSWd7T00A
    bwBkAGUAbAAAAAAAAACPdks6OQxFSpf/dAbd/xBPBwAAAJzpTVRIkAxEjRUD6Eln
    e09ZAHIAAAAAAAAAj6yQFEDYy0utEnEK2WD6qgcAAACc6U1USJAMRI0VA+hJZ3tP
    QwBvAGwAbwByAAAAAAAAAE4fCFmx/CtHtwkTeMlLCmEHAAAAnOlNVEiQDESNFQPo
    SWd7T1YAaQBuACAATgB1AG0AYgBlAHIAAAAAAAAAeTU5LE4tLE2logmOBFG+mgcA
    AACc6U1USJAMRI0VA+hJZ3tPUAByAGkAYwBlAAAAAAAAAOBprfb8f75FuDPsJjSJ
    4DEHAAAAnOlNVEiQDESNFQPoSWd7T0kAbQBhAGcAZQAAAAAAAADHHMzcxn4sTbPP
    g+piA6klBwAAAJzpTVRIkAxEjRUD6Elne09NAGkAbABlAGEAZwBlAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAA
    "/>
    <od:tableProperty name="DefaultView" type="2" value="2"/>
    <od:tableProperty name="GUID" type="9" value="nOlNVEiQDESNFQPoSWd7Tw==
    "/>
    <od:tableProperty name="DisplayViewsOnSharePointSite" type="2" value="1"/>
    <od:tableProperty name="TotalsRow" type="1" value="0"/>
    <od:tableProperty name="FilterOnLoad" type="1" value="0"/>
    <od:tableProperty name="OrderByOnLoad" type="1" value="1"/>
    <od:tableProperty name="HideNewField" type="1" value="0"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ID" minOccurs="1" od:jetType="autonumber" od:sqlSType="int" od:autoUnique="yes" od:nonNullable="yes" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="1"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="SPrKkbEjA0OevLIKb9vv4g==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Make" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="2"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="EphWVovgwku7CW/Q2ZhnAQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Model" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="3"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="e6yANyDvN0yxrfCmczosXQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Yr" minOccurs="0" od:jetType="longinteger" od:sqlSType="int" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="4"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="DecimalPlaces" type="2" value="255"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="j3ZLOjkMRUqX/3QG3f8QTw==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Color" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="5"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="j6yQFEDYy0utEnEK2WD6qg==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="VinNumber" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="6"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="Th8IWbH8K0e3CRN4yUsKYQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Price" minOccurs="0" od:jetType="currency" od:sqlSType="money" type="xsd:double">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="7"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Format" type="10" value="$#,##0.00;($#,##0.00)"/>
    <od:fieldProperty name="DecimalPlaces" type="2" value="255"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="eTU5LE4tLE2logmOBFG+mg==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Mileage" minOccurs="0" od:jetType="longinteger" od:sqlSType="int" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="8"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="DecimalPlaces" type="2" value="255"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="xxzM3MZ+LE2zz4PqYgOpJQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Pics" minOccurs="0" od:jetType="anyURI" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="10"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <dataroot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated="2010-11-09T16:11:16">
    <Cars>
    <ID>8</ID>
    <Make>Toyota</Make>
    <Model>Corolla</Model>
    <Yr>1992</Yr>
    <Color>Blue</Color>
    <VinNumber>1645kjdjdj</VinNumber>
    <Price>19326.3</Price>
    <Mileage>15362</Mileage>
    <Pics xmlns:xlink="http://www.w3.org/1999/xlink"> <-
        <link xlink:type="simple"                                   <-
          xlink:show="embed"                                        <-
          xlink:actuate="onLoad"                                    <-
          xlink:title="Well! This is an image!"                    <-
          xlink:href="2521299015.jpg">                           <-----this was last attempt also did not work
        </link>
       </Pics>
    </Cars>
    <Cars>
    <ID>9</ID>
    <Make>Toyota</Make>
    <Model>Yaris</Model>
    <Yr>2009</Yr>
    <Color>Blue</Color>
    <VinNumber>lakjladlajkd</VinNumber>
    <Price>12536</Price>
    <Mileage>21365</Mileage>
    <Pics>/images/2521299015.jpg</Pics>               <----this is what I've seen the most as what your supposed to have, also does not work for me
    </Cars>
    <Cars>
    <ID>10</ID>
    <Make>Nissan</Make>
    <Model>Sentra</Model>
    <Yr>1985</Yr>
    <Color>Red</Color>
    <VinNumber>akjlkdjf54454</VinNumber>
    <Price>5326</Price>
    <Mileage>24558</Mileage>
    </Cars>
    </dataroot>
    </root>
    no matter how i have tried formatting the image, adding img src etc...nothing makes the pic show up...i need to get this part to work more than any other. what do i put in the xml file that will make a image show up in the dynamic spry table? I cant add a table outside of the dynamically created one, if i do, how will the pics sort correctly with the spry table?

  • Spry data sets and column width

    Hello,
    might sound simple ... I have a dynamic spry data table. The
    data show fine ... But I don't seem to be able to set the width of
    my columns through CSS (I give each column a separate style class,
    and all other properties work fine, except the width of the column)
    Anybody a view ?
    Thanks a million for your help.
    Peter

    <script type="text/javascript">
    <!--
    var Flags = new Spry.Data.XMLDataSet("../XML/flags.xml.php",
    "ValidatorList/Validator_item");
    //-->
    </script>
    <div class="Tbl" spry:region="Flags">
    <table>
    <tr>
    <th class="ID" spry:sort="@id">Id</th>
    <th class="TblC" spry:sort="Delete">Delete</th>
    <th class="TblL"
    spry:sort="URL_Display">Link</th>
    <th class="TblL">Status</th>
    <th spry:sort="Visible">Visible</th>
    <th spry:sort="HTML">Html</th>
    <th spry:sort="Content">Content</th>
    <th spry:sort="Hits">Hits</th>
    <th spry:sort="Pct">%</th>
    <th spry:sort="Time">Time</th>
    </tr>
    <tr class="TblSummary">
    <td class="ID" >IDS</td>
    <td class="TblC"> </a></td>
    <td class="TblL"> </a></td>
    <td class="TblL"> </span></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr spry:repeat="Flags" spry:odd="Odd" spry:even="Even"
    spry:hover="Hover" spry:select="Select">
    <td class="ID" >{@id}</td>
    <td class="TblC"><a href="#"
    onclick="{Delete}"><img src="../Images/icons/cancel.png"
    /></a></td>
    <td class="TblL"><a
    href="{URL_Link}">{URL_Display}</a></td>
    <td class="TblL"><span
    class="{Status_Style}">{Status}</span></td>
    <td><a href="{Visible_Pre}"><img
    src="../Images/icons/{Visible}.png" /></a></td>
    <td><img src="../Images/icons/{HTML}.png"
    /></td>
    <td><a href="{Content_Pre}"><img
    src="../Images/icons/{Content}.png" /></a></td>
    <td>{Hits}</td>
    <td>{Pct}</td>
    <td>{Time}</td>
    </tr>
    </table>
    </div>
    and the css style sheet says ....TblL
    text-align: left;
    padding-left: 0px;
    width: 150px;

  • Spry select list code to wire it to html data table SET column?

    I am making a page based on Figure 15-14, Pg 878, in David Power's book, "Dw CS4 with CSS, Ajax and PHP. I have two separate html data tables hidden in the page, one for the specialties drop down select list and the other for the teachers master/detail regions. These are populated with php and working well. The spry select list and master/detail regions are working great except for one issue. The column in my html data table that is being filtered ("Specialty" in my code = 'Category' in the book's example code) is a SET column (with possible value of 1, 2, 3, 4, and/or 5). Clicking on the drop down menu brings up the records with a single value beautifully. The result for records with multiple values is a spry error "Invalid row number: 0". After four different versionings and methods of messing with this, I still haven't a clue. Please help me with how to rewire the Spry select list code so that it will read the records that have multiple items in that column. I have included the code below.
    var data_set_teachers = new Spry.Data.HTMLDataSet(null, "teacher_data");
    data_set_teachers.gallery = '1';
    function chooseSet(dataSet, row, rowNumber)
    if (row["Specialty"] == data_set_teachers.gallery) {
       return row;
    return null;
    data_set_teachers.filter(chooseSet);
    function changeSet(set)
    data_set_teachers.gallery = set;
    data_set_teachers.filter(chooseSet);
    data_set_teachers.setCurrentRowNumber(0);
    var rows = data_set_teachers.getData();
    for (var i = 0; i < rows.length; i++) {
       if (rows[i]["Specialty"] == set) {
         data_set_teachers.setCurrentRowNumber(i);
         break;
    var data_set_specialties = new Spry.Data.HTMLDataSet(null, "specialty_data");

    Well I'll be damned!
    What's done in the sample app is, of course, the intuitively obvious choice and is exactly what I started out trying to do the first time round.
    But as I mentioned before, when I first tried it (yes: I'm pretty sure I set the "for" attribute on the inlineMessage components), I got the non-unique component id exception for the inlineMessage component(s) after adding the second (but not the first) row to the page.
    Anyway, after dragging my inlineMessages to the exact same position as those in the AppModel example, now things work fine (except I think I'd like a line break before the message and to change the row/column styles so the values and messages line up properly...the look is rather ugly in the AppModel example when there are validation messages displayed).
    Not sure, but I'm thinking maybe there was an issue with where the inline message markup was placed, my first time through, relative to the data table value bound component and the column header facet?
    I was using the application view drag 'n drop feature the first time round and dragged the inlineMessage component to the spot just below the data table value bound component and hence just above the column header facet. In the AppModel example, OTOH, the inline messages are placed just after the column header facet.
    Of course, I will now try to duplicate the original exception.
    If I can (and it is an issue with placement), I will post back some sort of bug report or RFE. Otherwise, I'll post back declaring what a bone head I've been...;-)
    Anyway, thanks for the quick response, v.
    Campbell

  • Spry data set and html table with multiple images

    I use "Spry Data Set" in my Dreamweaver CS4 site. I need to make one html file (a product page) and all the product data comes from a separate html table.
    So, I have a html table that contains the product data and the images. Each row is one product.
    Column 1 contains a product name
    Column 2 contains product information
    Column 3 contains products thumbnail image 1
    Column 4 contains products thumbnail image 2
    Column 5 contains products large image 1
    Column 6 contains products large image 2
    This a simple example of the idea. In reality, there is lot more content.
    So the actual question is that:
    How can I show in the product page all the thumbnail images, but only one large picture at a time?
    And when the thumbnail is clicked the large picture changes accordingly.

    It depend entirely on what you want.
    One way would be to show a shadow box as per http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=shadowbox&search_exchange=&num =25&startnum=1&event=search&sort=0&interim_dummy_tmpfield=&Submit= or http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=lightbox&search_exchange=&sear ch_license=&search_rating=&search_pubdate=&Submit=Search&num=10&startnum=1&event=search&so rt=0&dummy_tmpfield=
    Another way is to have a master/detail area where the large image appears after clicking in the master area like this http://labs.adobe.com/technologies/spry/demos/products/index.html
    You could also use tooltips as in http://labs.adobe.com/technologies/spry/samples/data_region/TooltipwithData.html.
    There are many more ways, but you need to make the desicion based on the layout of your page.
    Gramps

  • Excel table to update spry data set (?)

    Hello again!
    In my last posted I asked for a scrolling text script.. I have decided to use spry data set to update shipping info - the problem I am not running into is - I need my corker(s) to be able to update this too - I of course understand rows and cell in html etc but they dont. MY goal is you have somehow a way for them to update an excel file click export or whatever and when the webpage I have created refreshs - the new data is there. I have tried do experiement with a macro in excel that exports to an xml file but , man... yikes!  I need help. Anyone point me in the right direction? I have no problems of course updating this info for them but if Im gone or somehting .. I need an easy way for my coworkers to update this from excel or the like
    Thanks
    Rob

    thanks V
    Im not sure that is going to work... I need to have multiple lines in one row
    example - in the 3rd line there - 122 and 123:
    I tried a sample csv file too and it said it couldnt retrieve spry:repeat - or something -
    thanks, Ill keep trying witht he CSV file stuff but so far not working
    R

  • Rating widget with data table

    I am using rating widgets with php generated tables... but I
    like the spry data regions better (for sorting). is it possible to
    dynamically create rating widgets in a spry data region? I tried
    doing it by applying the information from "Using HTML Fragments In
    XML Sample " but that doesnt work. Any ideas?

    Did u check:
    http://labs.adobe.com/technologies/spry/samples/tooltip/Tootlip_with_HTML_Panel.html
    http://labs.adobe.com/technologies/spry/samples/data_region/TooltipwithData.html

  • How to link within a spry data set?

    Hi everybody,
    I am working with DW CS4 and want to know how to insert a link to another html site within the Spry data set. All I am archieving at the moment is to write the hyperlink-addy as plain text on my website.
    I have this kind of structure in my data set:
      <example>
        <screenshot>Pics/examples/SRB.jpg</screenshot>
        <name>Sounddesign Radio SRB</name>
        <sort>Music production</sort>
        <link> ??? </link>
      </example>
    Thanks a lot for your help!
    Cheers,
    El Teaso

    Hi,
    thanks for taking the time to haul through the Code I produced!
    Although the website isn't launched yet, you can have a look at the site on this online "test-site": http://www.media-powerplant.de/media-powerplant-referenzen.html (on the left side you'll find the Spry-master region and on the left-hand side there is the Detail-region which should include the hyperlink)
    Here is the HTML-Code for the site: (the green text is the part with the embedded Spry data set that works and the red line is the part which is not working)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.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" />
    <meta name="description" content="Ihr Partner für Musik- und Videoproduktionen, Webdesign, Internet, Flash, Podcasts und Grafikdesign" />
    <meta name="keywords" content="gemafreie musik,lizenzfrei,lizenzfreie musik, royalty free, filmmusik,hintergrundmusik, werbespot,trailer, jingles, loops, Werbemusik, Mastering, Scoremusik, Filmproduktion,Videoproduktion,Computeranimation,Postproduktion,Filmagentur,3D Visualisierung,3D Animation,Filme,Video,Film Produktion,Grafik Design,Imagefilm,Werbefilm,Werbefilme,Werbefilmproduktion, Webdesign, Webspace ,Webhosting, Web-Design , Web, Domainregistrierung, Internetdesign, Internet, Provider, HTML, Web-Space, Design, Webdesign München, Grafikdesign, kreative, innovative, Homepage, Suchmaschinenoptimierung, Michael Peh, Michi Peh, Matthias Damoser, media powerplant, media-powerplant, München"/>
    <title>media powerplant *** Musikproduktion / Videoproduktion / Webdesign ***</title>
    <meta name="author" content="[email protected]">
    <meta name="copyright" content="Webdesign: Matthias Damoser / media powerplant">
    <meta name="Content-Language" content="de">
    <meta name="robots" content="INDEX,FOLLOW">
    <meta name="revisit-after" content="7 days">
    <link rel="SHORTCUT ICON" href="http://www.media-powerplant.de/favicon.ico">
    <link href="mppLayout.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
        <style type="text/css">@import url(ie.css);</style>
      <![endif]-->
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsreferenzen = new Spry.Data.XMLDataSet("referenzen.xml", "referenz/beispiel");
    dsreferenzen.setColumnType("name", "html");
    dsreferenzen.setColumnType("a", "html");
    dsreferenzen.setColumnType("a/@href", "html");
    dsreferenzen.setColumnType("a/@target", "html");
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    var dslinks = new Spry.Data.XMLDataSet("referenzenlinks.xml", "referenz/link");
    dslinks.setColumnType("a", "html");
    //-->
    </script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="hauptfenster">
    <div id="content">
      <div id="mitte">
        <div id="header">
          <h1>media powerplant</h1>
        </div>
        <div id="mainnavi">
          <div class="menuHome" onclick=MM_goToURL('parent','media-powerplant-home.html');return document.MM_returnValue document.MM_returnValue></div>
          <div class="menuMusik" onclick=MM_goToURL('parent','media-powerplant-musikproduktion.html');return document.MM_returnValue></div>
          <div class="menuVideo" onclick="MM_goToURL('parent','media-powerplant-videoproduktion.html');return document.MM_returnValue"></div>
          <div class="menuWeb" onclick=MM_goToURL('parent','media-powerplant-webdesign.html') document.MM_returnValue></div>
          <div class="menuReferenzen" onclick="MM_goToURL('parent','media-powerplant-referenzen.html');return document.MM_returnValue"></div>
          <div class="menuAbout" onclick=MM_goToURL('parent','media-powerplant-about.html') document.MM_returnValue></div>
          <div class="menuKontakt" onclick="MM_goToURL('parent','media-powerplant-kontakt.html');return document.MM_returnValue"></div>
          <div class="menuImpressum" onclick="MM_goToURL('parent','media-powerplant-impressum.html');return document.MM_returnValue"></div>
        </div>
        <div id="inhalt">
        <h2><span class="mpp">media powerplant</span> <span class="bereich">Referenzen</span></h2>
          <h2 class="unterüberschrift">Hier finden Sie einen Überblick und einige interessante Details über unsere letzten Projekte</h2>
          <p> </p>
          <div id="musikproduktion">
            <div id="musikprojekte">
              <div id="projektescroll">
                <div spry:region="dsreferenzen">
                  <table id="referenzTable">
                    <tr spry:repeat="dsreferenzen" spry:hover="rowHoverRef" spry:select="rowSelectRef" spry:setrow="dsreferenzen">
                      <td><img src="{screenshot}" alt="{name}" width="140" height="93" class="screenshot"></td>
                      <td><span class="kategorie">{kategorie}</span><br>
                        <span class="name">{name}</span></td>
                    </tr>
                  </table>
                </div>
              </div>
            </div>
            <div spry:detailregion="dsreferenzen">
              <div id="musikmainRef">
                <h2> </h2>
    <p> </p>
                <div id="projektbeschreibung">
                  <p class="beschreibung">{beschreibung}</p>
                  <p class="aufgabenfeld">{dsreferenzen::aufgabenfeld}</p>
                  <p class="aufgabenbilder">
                  <img src="{bild1}" width="90" height="77" class="bild"><img src="{bild2}" width="90" height="77" class="bild"><img src="{bild3}" width="90" height="77" class="bild"><img src="{bild4}" width="90" height="77" class="bild"> </p>
                  <p class="reflink">{dsreferenzen::a/@href}</p>
                </div>
              </div>
           </div>
          </div>
            <div class="copyrightref">Copyright © 2009 media powerplant | Alle Rechte vorbehalten | <a href="media-powerplant-impressum.html">Impressum</a> |  <a href="media-powerplant-kontakt.html">Kontakt</a> | </div>
        </div>
      </div>
      </div>
    </div>
    </body>
    </html>
    Okay, and here is the XML code: (the red line shows the the code, that should be shown as a link, but isn't working)
    <?xml version="1.0" encoding="UTF-8"?>
    <referenz>
      <beispiel>
        <screenshot>Bilder/Projektbilder/SRB.jpg</screenshot>
        <name>Sounddesign Radio SRB</name>
        <kategorie>Musikproduktion</kategorie>
        <beschreibung>Media powerplant produzierte das gesamte Sounddesign für den regionalen Radiosender SRB. Dabei wurden hauptsächlich Musikbetten und Radiojingles produziert.</beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/waves.jpg</bild1>
        <bild2>Bilder/Projektbilder/peakmeter.jpg</bild2>
        <bild3>Bilder/Projektbilder/mixpult.jpg</bild3>
        <bild4>Bilder/Projektbilder/mics.jpg</bild4>
              <a target="_blank" href="http://www.google.de">www.weblink.de</a>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
        <name>EarthTV Musik</name>
        <kategorie>Musikproduktion</kategorie>
        <beschreibung>Komposition und Produktion des Stückes "Steil" im Auftrag von EarthTV für deren Sendeformat bei Sevenload.</beschreibung>
        <aufgabenfeld>Aufgabenbereich:* Musikkompostion * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/peakmeter.jpg</bild1>
        <bild2>Bilder/Projektbilder/headphones.jpg</bild2>
        <bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
        <bild4>Bilder/Projektbilder/mic.jpg</bild4>
        <a target="_blank" href="http://www.gmx.de">www.weblink2.de</a>
      </beispiel>
    </referenz>
    (this shows only the first two entries)
    Then, I also attached some screenshots of the Spry-Wizard. You can see, that it splits the line with the link in three seperate items.

  • Using Highlight for columns in data tables

    Hi, I'm using the "Highlight" function of SpryEffects in
    combination with the sorting features. My HTML structure is a
    simple data table, with a repeating region on the table row, so it
    pulls in as many rows there are pieces in the attached XML file.
    When I sort by one of the column headers at the top, I want to
    highlight that whole column, so users can see what they're sorting
    by. I'm able to get the first row of the data table highlighted,
    but none of the following rows work. I'm pretty sure the problem is
    that the highlight function only works when you use an id to define
    the element that you want highlighted. If it's in a repeating row,
    it sees many ids on the page, and only applies the highlight to the
    first one. I want to change the id to a class, so I can put
    multiple ones on the page and have it work, but I can't see how to
    do that in the SpryEffects.js file.
    Can anyone tell me if it's possible to do this? Thanks.
    Here's the portion of the .js file:
    function setupHighlight(element, effect)
    Spry.Effect.setStyleProp(element, 'background-image',
    'none');
    function finishHighlight(element, effect)
    Spry.Effect.setStyleProp(element, 'background-image',
    effect.options.restoreBackgroundImage);
    if (effect.direction == Spry.forwards)
    Spry.Effect.setStyleProp(element, 'background-color',
    effect.options.restoreColor);
    Spry.Effect.Highlight = function (element, options)
    var durationInMilliseconds = 1000;
    var toColor = "#ffffff";
    var doToggle = false;
    var kindOfTransition = Spry.sinusoidalTransition;
    var setupCallback = setupHighlight;
    var finishCallback = finishHighlight;
    var element = Spry.Effect.getElement(element);
    var fromColor = Spry.Effect.getStyleProp(element,
    "background-color");
    var restoreColor = fromColor;
    if (fromColor == "transparent") fromColor = "#ffff99";
    var optionFrom = options ? options.from : '#ffff00';
    var optionTo = options ? options.to : '#0000ff';
    if (options)
    if (options.duration != null) durationInMilliseconds =
    options.duration;
    if (options.from != null) fromColor = options.from;
    if (options.to != null) toColor = options.to;
    if (options.restoreColor) restoreColor =
    options.restoreColor;
    if (options.toggle != null) doToggle = options.toggle;
    if (options.transition != null) kindOfTransition =
    options.transition;
    if (options.setup != null) setupCallback = options.setup;
    if (options.finish != null) finishCallback = options.finish;
    var restoreBackgroundImage =
    Spry.Effect.getStyleProp(element, 'background-image');
    options = {duration: durationInMilliseconds, toggle:
    doToggle, transition: kindOfTransition, setup: setupCallback,
    finish: finishCallback, restoreColor: restoreColor,
    restoreBackgroundImage: restoreBackgroundImage, from: optionFrom,
    to: optionTo};
    var highlightEffect = new Spry.Effect.Color(element,
    fromColor, toColor, options);
    highlightEffect.name = 'Highlight';
    var registeredEffect =
    SpryRegistry.getRegisteredEffect(element, highlightEffect);
    registeredEffect.start();
    return registeredEffect;

    Hi Philip, Thanks a lot for puting this enhancement request through.
    Just downloaded the latest Patch upgrading to v 3.1.2-704 and confirmed that this functionality is not available yet.
    Keeping your experience in mind what kind of expectation to you have for the approval and realization of your request?
    Most likely this will take a couple of month – right? Or is there a beta version of 3.2 already available we could use.
    Thanks a lot. Cheers Stefan

  • Spry Data Sets and CFCs?

    So, I've got the Spry Data Set working reading an XML file:
    http://brad.melendy.com/projects/ajax/spry/test1.cfm
    Which seems to work, the ID column sorts on click, all is
    well. The actual
    file it is reading is located here:
    http://brad.melendy.com/projects/webservice/employee.xml
    Then, I have it set to read the same data from my CFC in this
    version here:
    http://brad.melendy.com/projects/ajax/spry/test2.cfm
    This isn't working? But I can see the data when I open the
    CFC directly in
    my browser like this:
    http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll
    So finally, here is my code on test2.cfm that isn't working?
    <!--- START CODE --->
    <script src="../../../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../../../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new
    Spry.Data.XMLDataSet("
    http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll",
    "response/data/row",{sortOnLoad:"id",sortOrderOnLoad:"ascending",distinctOnLoad:true});
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
    <table>
    <tr>
    <th spry:sort="id">Id</th>
    <th>FirstName</th>
    <th>LastName</th>
    <th>OfficePhone</th>
    </tr>
    <tr spry:repeat="ds1" spry:setrow="ds1">
    <td>{id}</td>
    <td>{firstName}</td>
    <td>{lastName}</td>
    <td>{officePhone}</td>
    </tr>
    </table>
    <!--- END CODE --->
    The two files test1.cfm and test2.cfm are the same except for
    the source of
    the XMLDataSet which is the static XML document in test1.cfm
    and the full
    URL to the CFC in test2.cfm.
    Thanks for any tips, this is exactly how it is suppose to
    work according to
    the livedocs but it isn't.
    ...Brad

    I figured this out, my problem was that although IE was
    displaying identical
    XML documents from my CFC and employee.xml, the output
    produced by the CFC
    was not a true xml document. I'm not sure exactly what was
    making it fail
    to be seen as an xml document, but after updating the code to
    use <cfxml>
    the document was created properly and then Spry could see the
    data and
    display it.
    "Brad Melendy" <[email protected]> wrote in
    message
    news:[email protected]...
    > So, I've got the Spry Data Set working reading an XML
    file:
    >
    >
    http://brad.melendy.com/projects/ajax/spry/test1.cfm
    >
    > Which seems to work, the ID column sorts on click, all
    is well. The
    > actual file it is reading is located here:
    >
    >
    http://brad.melendy.com/projects/webservice/employee.xml
    >
    > Then, I have it set to read the same data from my CFC in
    this version
    > here:
    >
    >
    http://brad.melendy.com/projects/ajax/spry/test2.cfm
    >
    > This isn't working? But I can see the data when I open
    the CFC directly
    > in my browser like this:
    >
    >
    http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll
    >
    > So finally, here is my code on test2.cfm that isn't
    working?
    >
    > <!--- START CODE --->
    > <script src="../../../SpryAssets/xpath.js"
    > type="text/javascript"></script>
    > <script src="../../../SpryAssets/SpryData.js"
    > type="text/javascript"></script>
    > <script type="text/javascript">
    > <!--
    > var ds1 = new
    > Spry.Data.XMLDataSet("
    http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll",
    >
    "response/data/row",{sortOnLoad:"id",sortOrderOnLoad:"ascending",distinctOnLoad:true});
    > //-->
    > </script>
    > </head>
    >
    > <body>
    > <div spry:region="ds1">
    > <table>
    > <tr>
    > <th spry:sort="id">Id</th>
    > <th>FirstName</th>
    > <th>LastName</th>
    > <th>OfficePhone</th>
    > </tr>
    > <tr spry:repeat="ds1" spry:setrow="ds1">
    > <td>{id}</td>
    > <td>{firstName}</td>
    > <td>{lastName}</td>
    > <td>{officePhone}</td>
    > </tr>
    > </table>
    > <!--- END CODE --->
    >
    > The two files test1.cfm and test2.cfm are the same
    except for the source
    > of the XMLDataSet which is the static XML document in
    test1.cfm and the
    > full URL to the CFC in test2.cfm.
    >
    > Thanks for any tips, this is exactly how it is suppose
    to work according
    > to the livedocs but it isn't.
    >
    > ...Brad
    >
    >

  • Ad link and image to spry dynamic table

    hello,
    i create a simple spry dynamic table i want to add a column
    with image (link to a photo gallery) and another one whose linking
    to pdf files. How i can do this.
    my html 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">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>tableau choix séjour raquette: Bauges,
    Chartreuse</title>
    <style type="text/css">
    <!--
    .Style49 {color: #FF6600}
    -->
    </style>
    <script type="text/javascript"
    src="xpath.js"></script>
    <script type="text/javascript"
    src="SpryData.js"></script>
    <script type="text/javascript">
    var dsMassifs = new Spry.Data.XMLDataSet("tab_raquette.xml",
    "massifs/massif");
    </script>
    </head>
    <body>
    <div spry:region="dsMassifs">
    <table width="950" height="294" border="1"
    align="center">
    <tr>
    <th width="78" scope="col"spry:sort="@id"><div
    align="center" class="Style49">Massif</div></th>
    <th width="84"
    scope="col"spry:sort="durée"><div align="center"
    class="Style49">Durée</div></th>
    <th width="164"
    scope="col"spry:sort="thème"><div align="center"
    class="Style49">Thème</div></th>
    <th width="77" scope="col"spry:sort="niveau"><div
    align="left" class="Style49">Niveau</div></th>
    <th width="77" scope="col"spry:sort="niveau"><div
    align="center">Fichiers</div></th>
    </tr>
    <tr spry:repeat="dsMassifs">
    <td><div
    align="center">{@id}</div></td>
    <td><div
    align="center">{durée}</div></td>
    <td><div
    align="center">{thème}</div></td>
    <td><div
    align="left">{niveau}</div></td>
    <td><div
    align="left">{fichier}</div></td> </tr>
    </table>
    </div>
    </body>
    </html>
    my xml code:
    <?xml version="1.0" encoding="utf-8"?>
    <massifs xmlns="
    http://www.foo.com/employees">
    <massif id="Bauges">
    <durée>Week end</durée>
    <thème>raquette et bien
    être</thème>
    <niveau>1</niveau>
    <fichier>Fiche circuit.pdf</fichier>
    </massif>
    <massif id="Chartreuse">
    <durée>4 jours</durée>
    <thème>raquette et gastronomie
    </thème>
    <niveau>2</niveau>
    <fichier>Fiche circuit.pdf</fichier>
    </massif>
    </massifs>

    "David Powers" <[email protected]> wrote in message
    news:fapkm4$cjt$[email protected]..
    > Joris van Lier wrote:
    >> Does Dreamweaver CS3 contain such a "Live Object"?
    >> (one that generates XML export and Spry DynamicTable
    code from a
    >> Recordset?)
    >
    > One of the registration gifts for CS3 is an XML Export
    extension, which
    > generates XML on the fly from a recordset.
    Thanks for you reply David,
    since I posted I've found the the Spry documentation for
    Dreamweaver 9, and
    the info at
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WS48C07A61-5107-48d0-AC6 2-D96B7A008F01.html,
    seems to suggest that inserting a spry DynamicTable is a
    multi step process,
    so the Live Object may still be useful in other servermodels,
    but I'll focus
    my efforts on duplicating the existing Spry integration for
    the PHAkt
    servermodel.
    Joris

  • Spry Data Set visible in Live View, but not on Site.

    Hi,
    I've used the spry data set widget to create a dynamic table. Everything looks fine in the live view. On the site itself, however, I see only a brief flash of the unpopulated spry table, and then nothing. All necessary files, including those in the SpryAssets folder, have been uploaded.
    This is particularly frustating since my first crack at a spry data set worked with ease.
    I have the feeling that I missing something simple.  Any ideas?
    Here is the table:
    http://www.ldcsb.on.ca/ntip/teachphotos/profiletable.html
    Here is the spry data set:
    http://www.ldcsb.on.ca/ntip/teachphotos/profiles.html
    Thanks for looking,
    Jim

    Jim, Your page comes up fine in Firefox, but as you said it flashes and disappears in IE8.
    I notice some differences in the ids and Spry:sort values. You might sort those out (make them the same) and see what happens.
    This is in the profiletable:
    <td id="Image">Image</td>
    <td id="First">First </td>
    <td wid="Last">Last </td>                                        lose the w
    <td id="Sschool">School</td>                                   lose the extra s
    <td id="Grade">Grade </td>
    <td id="Subject1">Subject1</td>
    <td id="Subject2">Subject2</td>
    <td w id="Description">Description</td>                    lose the w and the extra space
    And this in the Spry region:
    <th spry:sort="Image">Image</th>
    <th spry:sort="First">First</th>
    <th spry:sort="Last">Last</th>
    <th spry:sort="School">School</th>
    <th spry:sort="Grade">Grade</th>
    <th spry:sort="Subject1">Subject1</th>
    <th spry:sort="Subject2">Subject2</th>
    <th spry:sort="Description">Description</th>
    It's possible that IE is pickier than Firefox that the names be the same.
    Other than that, look for things to clean up, like tightening up the table...I notice several places in the data where there are blank lines between the </tr> of one line and the <tr> of the next.  Make sure every entry in the table has a cell for every column.
    You're right; it is an easy Widget to work with...unless some tiny thing goes wrong and it doesn't work! I have had a data set that had some of those tiny anomalies, fixed them, and now I know to look for them.
    Beth

  • ERROR: Spry.Data.XMLDataSet.setDataFromDoc() failed to create dataSet

    Hi (sorry for my english in advance!!!)
    I´m trying to get some XML from a servlet but I get this
    error message:
    "Spry.Data.XMLDataSet.setDataFromDoc() failed to create
    dataSet ''for 'transacciones/tx' -
    http://170.14.46.119:8080/struts-ajax/xml.do"
    Here´s my code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Prueba Spry</title>
    <script type="text/javascript"
    src="include/xpath.js"></script>
    <script type="text/javascript"
    src="include/SpryData.js"></script>
    <!-- Crear el dataset -->
    <script type="text/javascript">
    var dsTx = new Spry.Data.XMLDataSet("
    http://170.14.46.119:8080/struts-ajax/xml.do",
    "/transacciones/tx");
    dsTx.setColumnType("ingreso", "number");
    dsTx.setColumnType("egreso", "number");
    </script>
    </head>
    <body>
    <div id="Transacciones" spry:region="dsTx">
    <table id="tabla_tx" class="main">
    <tr>
    <th>Fecha</th>
    <th>Referencia</th>
    <th onclick="dsTx.sort('parade');">Para/De</th>
    <th
    onclick="dsTx.sort('categoria');">Categor&iacute;a</th>
    <th onclick="dsTx.sort('ingreso');">Ingreso</th>
    <th onclick="dsTx.sort('egreso');">Egreso</th>
    </tr>
    <tr spry:repeat="dsTx">
    <td>{fecha}</td>
    <td>{referencia}</td>
    <td>{parade}</td>
    <td>{categoria}</td>
    <td>{ingreso}</td>
    <td>{egreso}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    And here´s the XML generated by the servlet:
    <?xml version="1.0" encoding="UTF-8"?>
    <transacciones>
    <tx id="1">
    <fecha>10/06/06</fecha>
    <referencia>A1-0023871</referencia>
    <parade>CTI S.A.</parade>
    <categoria>Telefonía celular</categoria>
    <ingreso></ingreso>
    <egreso>$350,50</egreso>
    </tx>
    <tx id="2">
    <fecha>10/06/06</fecha>
    <referencia>A1-0653782</referencia>
    <parade>Garbarino S.A.</parade>
    <categoria>Equipamiento</categoria>
    <ingreso></ingreso>
    <egreso>$1049,00</egreso>
    </tx>
    <tx id="3">
    <fecha>11/06/06</fecha>
    <referencia>CI0002</referencia>
    <parade>Gomez y Gomez S.A.</parade>
    <categoria>Ingresos por ventas</categoria>
    <ingreso>$1955,00</ingreso>
    <egreso></egreso>
    </tx>
    </transacciones>
    Thanks for your help!!!!!
    Pablo

    Hi Pablo,
    I can't load your url:
    http://170.14.46.119:8080/struts-ajax/xml.do
    But perhaps it was only meant behind your firewall. In any
    case, there are a couple of things to look for:
    1. Is your XML valid? You can find out if the browser is
    throwing an error because there was something in your XML that it
    didn't like. The firefox browser will print an error message in the
    JavaScript console if this is the case.
    2. Is your server returning the XML as content-type
    application/xml or text/xml? If not, then some browsers won't parse
    the XML.
    --== Kin ==--

  • Spry Data Set: not all members displaying

    I have a simple data set showing membership in a group. About 100 members with 5 columns of information. When I preview the results only about 30 members are showing up & they are in the middle of the alphabet. I have not had problems updating the lsit in the past but now I am.
    Unfortunately I cannot show an example because the information is password protected for members only.
    Here is the code:
    <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var HSP = new Spry.Data.HTMLDataSet(null, "HSP");
    //-->
    </script>
    <div spry:region="HSP">
      <table width="100%" class="Directory">
            <tr class="Directory">
              <th spry:sort="First_Name">First_Name</th>
              <th spry:sort="Last_Name">Last_Name</th>
              <th spry:sort="Company">Company</th>
              <th spry:sort="Phone">Phone</th>
              <th spry:sort="E-MAIL">E-MAIL</th>
              <th spry:sort="WebPage">WebPage</th>
            </tr>
            <tr class="Directory" spry:repeat="HSP" spry:odd="DirectoryOddRow" spry:even="DirectoryEvenRow" spry:hover="DirectoryHover" spry:select="Directory">
              <td class="Directory">{First_Name}</td>
              <td class="Directory">{Last_Name}</td>
              <td class="Directory">{Company}</td>
              <td class="Directory">{Phone}</td>
              <td class="Directory"><a href="mailto:{E-MAIL}" >{E-MAIL}</a></td>
              <td class="Directory"><a href="http://{WebPage}" target="_blank" >{WebPage}</a></td>
            </tr>
          </table>
        </div>

    Arnout,
    The table structure got messed up when I exported the CSV from the spreadsheet.
    A few rows had an extra cell on the end I couldn't see.  Thank you.

Maybe you are looking for

  • How do I stop my 990Cse printer from printing in grayscale?

    I can't get my printer to stop printing in grayscale. I have an HP Deskjet 990Cse. My OS is Windows Vista 32 bit. I have gone to Preferences, Advanced and under Document Options the Color Printing Mode is "Grayscale (8bpp)". I can't get the drop down

  • 3.06GHz 24" iMac (Early 2009) Video Question

    Question. Should a white (or any color for that matter) background look completely solid on these displays? I see very subtle hints of gray (looks like a barely visible series of random horizontal bands (for lack of a better term). The glass is clean

  • Verifying a Digital Signature

    I have a smart card, which I am trying to use to digitally sign some bytes. Then I want to verify the signature using the public key which I can get from the certificate on the smart card. I am able to send some bytes to the card (using an apdu) and

  • Way to plot two variables on a chart by selecting the two variables on the front panel?

    Hello, I have created a VI to control a tensile tester which controls/outputs the following variables: time, load components in 6 directions, tensile displacements, displacements measured by a capacitance sensor.   Is there a way such that there woul

  • IDOCS_OUTPUT_VIA_XML_HTTP UTF-8 versus UTF-16

    Hi everyone! We are transforming an IDOC into a XML (IDOCS_OUTPUT_VIA_XML_HTTP). As a result we get an XML file with some special characters like ' replaced with a combination of some otherdifferent ones. This XML is received by an oracle service bus