Using Spry Data Set Variable in Recordset

I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

I believe passing this the variable through the URL requires you to update the page, right?
Yes
Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
Gramps

Similar Messages

  • SPRY DATA SET VS. RECORDSET

    Hi,
    Quick question.
    Building a site using CS5.5. Aready had a database created for use on the site.
    However, although I have successfully connected to the database, I am now trying to create a recordset to retrieve data and there is no option in the "Bindings" tab to do this.
    (My website will pull values from the database based on selections on the web page)
    All the options I see in Bindings are:
    Spry data set
    Get more data sources
    But I expect to see
    Recordset(Query)
    Command
    Request Variable
    Session Varaible
    Application Variable
    Is it that these are not available anymore in 5.5 and if not, how will a spry data set allow me to search on the html file created with all the data? {There are 3 tables in the my database at present}
    Write soon....

    Okay great! Thanks - for the screen shot as well.
    But also, I am aware that a spry data set would also allow me to select data based on a value.
    First question, can the spry data set allow me to select based on multiple criteria?
    Secondly, since for the Spry Data Set, the content will be stored on an HTML page, does this offer the same functionality as a recordset - where you can select a subset of data from the html content?
    Reason I ask is because I also like the idea that the spry data set can allow users (that I allow) to modify the content and I'm thinking of using this for the website instead.
    <<The website was originally going to pull database enties (which in this case would be html content entries?) based on drop down selection criteria which is also from a database table (other html file in this case?)>> In other words, how would this work using the spry data set.
    Thanks.

  • Error message when using Spry Data set with XML

    Hi,
    I have what i see as a big problem, might just be me being
    dumm, but here we go.
    When I try to use the feature of spry XML Data Set and insert
    spry table I get error message when trying it in IE 7.
    There are even a problem when I use fireworks automated slide
    show function, where you can choose to use the Spry/XML gallery
    feature.
    The error message I get everytime (incl the auto gallery in
    fireworks) is:
    The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "div" doesn't have an attribute: "spry:region" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    and so on.
    What´s wrong?!

    Hello barvid,
    Ok, let's take each problem step by step:
    1. The first error you see in the browser: " Exception while
    loading ..." normally appears when you try to load files that are
    not permitted by the browser security model. This means the XML
    file you try to load is located on a different server than your
    HTML which is not allowed. The browser is not permitting to load
    any files that are not in the same domain as the current page
    because of the complex security risks. You'll have to either get
    the XML file from its original location and save it in your website
    or use a proxy on your web server that should request that file
    from the external server and send it to the browser as an XML from
    the same domain as the HTML origin.
    1.2 The "Exception while loading ..." error you see is a
    generic error and my previous advise is based on my experience. In
    case this is not your scenario you'll have to open the SpryData.js
    and around line 112 you'll see the following code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + e);
    Please change this line with the following line of code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + (e.message?e.message:e));
    to obtain a more verbose error message that may clarify the
    reasons of your errors.
    2. The problems you describe are not browser errors but they
    are w3c validation errors. At this point the XHTML standard allows
    every application that define custom namespace attributes to also
    link a DTD to the page so the page to continue to be valid.
    Unfortunately at this point this feature is not correctly supported
    by the FF and IE so we wrote an articles about how you should
    link
    the Spry DTD to your page so the validator understand the
    custom attributes Spry use. You'll find inside the full description
    of the problems and all the technical details you'll need to know
    to solve this issue.
    Regards,
    Cristian

  • Spry data set help

    Just installed DW CS4 and have been playing around with creating a dynamic table using Spry data sets. I was able to get it working & looking OK. I have two questions.
    In the past a client would send me an Excel spreadsheet that I normally would export to CSV and then import into a static HTML table. Now I want to use the CSV file & create a dynamic table but the Spry widget for CS4 does not have the option of using a CSV file only HTML & XHTML. Spry is supposed to be able to use a CSV file. How do I do it?
    Second question is speed. The dymanic table takes a very long time to come up (lots of rows). Is it slow because it is looking for an external HTML table? If I have to use an HTML table for my data should it be on the same page as the Spry table to get the best speed?
    Thanks.

    Here's the example.. view the source code: CSV Data Set sample
    The Data Set Wizard doesn't give you the handy little import tool which makes it a bit more tricky & advanced set up is required.
    If you want to use the wizard, the easiest way is to save your CSV as a XML file. It doesn't doa great job at it though.
    I noticed that Spry preRelease will allow a lot of stuff, it just doesn't always make it easy. You'll need to use the SpryCSVDataSet.js and hand code most everything in, I'm affraid.
    That's about the best answer I can get for you, unless someone else has a better option. Give it a whirl and us me know if it works for you.

  • 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

  • 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

  • How to use multiple Spry Data Sets in one page

    I'm using two spry data sets in one page. When I add the first spry data set to my page everything runs OK, When I add the second spry data set to the page the first data set stops working. Does anyone know what the problem is?
    This is how I have my data sets listed.
    var ds1 = new Spry.Data.HTMLDataSet("/accounts/tower/list.php", "list");
    var ds2 = new Spry.Data.HTMLDataSet("/accounts/tower/numvisits.php", "chart");
    Thanks, let me know if you need more information.

    Good News!
    There is nothing wrong with what you have shown.
    Bad news!
    The problem could be in that part that you have not shown.
    Gramps

  • Using alternate rows with Spry Data Set

    Can anyone provide more information on how to implement alternate row colors with a Spry Data Set?  What I have done is:
    Create spry data set using HTML page as the data set
    The html page that displays the data set is:  <div spry:region="equipment">
    In the default.css page that is linked, I added the info in note #1 below
    When the page displays, no colors appear. Tried changing the colors and still no luck.  Is there another step to do?
    Note #1:
    within the default.css, the following are declared:
    #equipment odd {
    background-color: #CCC;
    #equipment even {
    background-color: “#F2F2F2;
    Note #2:
    Here is a link to see the actual pages referenced above.
    Any ideas? Getting frustrated!!  Thanks in advance for any advice.

    You are going to kick yourself, but, you haven't assigned any page element the ID #equipment. The region is called that but the table or the DIV does not have an idea and your selector matches nothing...

  • Using Spry.Data.XMLDataSet. Can xml file name be set to change on calendar date?

    I have a website that uses Spry Data XML DataSet to list common pests for the current month. http://www.shspestcontrol.com/
    Each month's list of pests is in a separate xml file (e.g. pests-august.xml)
    Rather than manually updating the file name each month, can it be setup to automatically change the name
    For instance on January 1st, file name changes to pests-january.xml, Feb 1st changes to pests-february.xml. etc.
    <script type="text/javascript">
    <!--
    var dsPests1 = new Spry.Data.XMLDataSet("xml_files/pests-august.xml", "gallery/pests/pest");
    //-->
    </script>
    Any advice if this can be done and if so how to go about doing it would be much appreciated
    Thanks, Toni

    <script>
    var dsPests1 = new Spry.Data.XMLDataSet("pests-september.xml", "gallery/pests/pest");
    function setPestsFile(){
        var months = new Array(13);
            months[0]  = "january";
            months[1]  = "february";
            months[2]  = "march";
            months[3]  = "april";
            months[4]  = "may";
            months[5]  = "june";
            months[6]  = "july";
            months[7]  = "august";
            months[8]  = "september";
            months[9]  = "october";
            months[10] = "november";
            months[11] = "december";
        var now = new Date();
        var monthnumber = now.getMonth();
        var monthname = months[monthnumber];
        dsPests1.setURL("pests-"+monthname+".xml");
        dsPests1.loadData();
    window.onload = setPestsFile();
    </script>

  • Spry Data Set - Possible to limit number of records show

    Hi,
    I am totally new to Spry in Dreamweaver.  I tried searching the forums for an answer but I could not find anything on how to limit the number of records shown.
    For example - I have 100 rows of information in my table.  When I do the Spry Data Set and use the Master/Detail page I only want 20 records to show.  Otherwise the page looks very long and odd.  Is it possible to just show the first 20 records and the ability to scroll or link the next 20 and so on?
    If you have a link to a tutorial or more information that would be greatly appreciated.
    Thank you,
    Kathy

    have a look here http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html

  • How do I link a Spry data set with a detail region to a html web site?

    I have created a spry data set with a detail region. It works well. However, I would like to have a link from the detail region to another html web site. Can anyone help with the code? Below is the spry data set.
    <?xml version="1.0" encoding="utf-8"?>
    <books>
    <book>
    <title>The Advnentures of Crunchy and Munchy Squirrel: Field Nuts</title>
    <author>Levester Williams</author>
    <image>images/portfolio/tn_adventuresOfCrunchyAndMunchySquirrel.jpg</image>
    <description>This delightful book for young readers teaches the importance of obedience and always doing what you know is right.</description> I
    <weblink >www.crunchyandmunchy.com</weblink>
    </book>
    <book>
    <title>More Dirty Little Secrets</title>
    <author> Dr. Claud Anderson and Brant Anderson</author>
    <image>images/portfolio/tn_moreDirtyLittleSecrets.jpg</image>
    <description>In More Dirty Little Secrets, Dr. Claud Anderson and his son Brant Anderson, piece together little known facts about Black people, thier achievements, influence, involvement, tribulations and present them with wit and humor.</description>
    <weblink>http://powernomics.com/</weblink>
    </book>
    </books>

    Hi,
    In your html page, use the following notation:
    <a href="http://{weblink}" title="{weblink}" target="_blank">{weblink}</a>
    I hope this helps.
    Ben

  • Need a little help with Slimbox (Lightbox clone) and Spry data sets

    Hello guys!
    First of all let me say that I'm not a programmer in any way,
    shape or form, and somehow I managed to build me a dynamic
    thumbnail gallery that reads data from an XML file and displays it
    on my webpage using a Spry data set and a slider widget (yay!)
    This is of course only thanks to the many great examples
    provided by the Adobe Spry team, and me being stubborn enough to
    keep at it, even though I don't really understand what I'm doing :D
    But I got to this point where I have basically everything
    working, except that I can't get the Slimbox (Lightbox clone)
    script to work with the Spry-generated thumbnail gallery.
    From what I could understand from other threads on this
    forum, is that I need to add an observer somewhere, only that I'm
    not sure where and how (those threads are pretty old and the
    examples aren't available anymore).
    I'm sure you guys know what I'm talking about, anyway, here's
    what I got so far:
    http://www.riotdesign.com.ar/misc/gallery/test1.html
    I have the thumbnail gallery populated from the external XML
    file, a basic page navigation using the Sliding Panels widget, and
    the Slimbox script which works only on the static test image.
    Okay I guess that's it for now, sorry for the long post and
    of course any help with this will be GREATLY appreciated :)
    Thanks & bye!

    Kev,
    Where exactly does the .evalScripts = true; text need to go?
    Does it go in the href call?
    <a href="ManageNotes.asp" title="Manage Notes" onClick="this.blur();
    Modalbox.show(this.href, {title: 'Manage Notes', width: 575}); return false;">View your notes.</a>
    Thanks for any assistance.
    J Bishop

  • Spry data sets

    I'm having trouble getting the Spry data set to display in my
    local testing environment. Can someone glance at my code and give
    me some tips? I have the XML file in the same folder as the HTML
    page.
    <!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=ISO-8859-1" />
    <title>Croxton Gray Commercial Properties, Greenville,
    SC - Search Company Listings</title>
    <link href="../css/master.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript"
    src="../includes/xpath.js"></script>
    <script type="text/javascript"
    src="../includes/SpryData.js"></script>
    <script type="text/javascript">
    var dsListings = Spry.Data.XMLDataSet("listings.xml",
    "listings/property");
    </script>
    </head>
    <body id="listings">
    <div id="wrapper">
    <div class="padding10">
    <?php include('../php/header.php'); ?>
    <p class="date"><?php
    echo date('l, F jS, Y');
    ?></p>
    <div id="contentWrapper">
    <div id="contentInner">
    <div id="contentColumn" spry:region="dsListings">
    <table width="100%" border="0" cellspacing="0">
    <tr>
    <th>Property</th>
    <th>Price</th>
    <th>Availability</th>
    </tr>
    <tr spry:repeat="dsListings"
    onclick="ds.Listings.setCurrentRow('{ds_RowID}')">
    <td>{name}</td>
    <td>{price}</td>
    <td>{availability}</td>
    </tr>
    </table>
    </div><!-- Closes content column -->
    <div id="rightColumn" spry:detailregion="dsListings">
    <h2>{name}</h2>
    <p>{description}</p>
    <p align="center"><img
    src="assets/{img}"/></p>
    <p><strong>Call</strong>: {contact}
    </p>
    </div><!-- Closes right column -->
    </div><!-- Closes content inner -->
    </div><!-- Closes content wrapper -->
    Here's the sample XML file I'm testing with. Again, it's
    located in the same folder as the HTML page.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <listings>
    <property>
    <name>100 South Main</name>
    <price>$100,000</price>
    <availability>for sale</availability>
    <image>asset_images/sunset.jpg</image>
    <description>This is a short description of the
    property.</description>
    </property>
    <property>
    <name>100 South Main</name>
    <price>$100,000</price>
    <availability>for sale</availability>
    <image>asset_images/sunset.jpg</image>
    <description>This is a short description of the
    property.</description>
    </property>
    <property>
    <name>100 South Main</name>
    <price>$100,000</price>
    <availability>for sale</availability>
    <image>asset_images/sunset.jpg</image>
    <description>This is a short description of the
    property.</description>
    </property>
    <property>
    <name>100 South Main</name>
    <price>$100,000</price>
    <availability>for sale</availability>
    <image>asset_images/sunset.jpg</image>
    <description>This is a short description of the
    property.</description>
    </property>
    </listings>
    Thanks to whomever takes the time. I really appreciate the
    extra set of eyes and any tips!

    With those 2 changes I mentioned above ... and the fact that
    I had to fix the markup because there were missing end tags, which
    I was assuming was just a copy paste problem ... it all worked fine
    for me. Of course I made sure the includes I used were in the
    correct place.
    After re-reading your original message above, you never
    really mentioned what you are seeing in the browser. Are there any
    errors being thrown? Are you seeing data references instead of
    values? If you are in need of help, we could diagnose things much
    faster if you had an URL we could take a peek at.
    Also what platform and browser are you using?
    Did you try loading the XML file directly in to your browser
    like ZeusChicago suggested? That would instantly tell you if your
    server was serving your XML up with the correct content-type or
    not.
    --== Kin ==--

  • Spry Data Sets and IE8

    Hi, I Currently have a glossary using the Spry Tabbed Panels with Spry Data Sets embedded in each tab. I had it working great in pre IE8.
    Once we upgraded to IE8 it just wont load or display the data sets in the tabs. Below is the page code. (I used the JS straight from the Spry Framework no alterations, except in the CSS files). Any help would be great =).
    <!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"><!-- InstanceBegin template="../../../../composition/Templates/profile_spone.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Glossary</title>
    <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" -->
    <script src="/composition/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/composition/composition002/profile_processes/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/composition/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/composition/composition002/profile_processes/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <link href="/composition/SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defnum", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds2 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defa", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds3 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defb", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds4 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defc", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds5 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defd", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds6 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defe", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds7 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/deff", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds8 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defg", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds9 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defh", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds10 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defi", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds11 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defj", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds12 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defk", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds13 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defl", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds14 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defm", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds15 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defn", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds16 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defo", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds17 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defp", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds18 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defq", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds19 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defr", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds20 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defs", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds21 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/deft", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds22 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defu", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds23 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defv", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds24 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defw", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds25 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defx", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds26 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defy", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    var ds27 = new Spry.Data.XMLDataSet("/composition/composition002/profile_processes/profile_glossary/glos sary.xml", "glossary/def/defz", {sortOnLoad: "word", sortOrderOnLoad: "ascending"});
    </script>
    <!-- InstanceEndEditable -->
    <link href="../../../../composition/css/profile_sp1.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../../../../composition/css/print1.css" rel="stylesheet" type="text/css" media="print" />
    </head>
    <body>
    <div id="top1">
      <table width="100%" height="75px" border="0" cellpadding="3" cellspacing="0">
        <tr bgcolor="#000000">
          <th width="6%" height="36" align="left" valign="middle" scope="col"><img src="/composition/composition002/Profile_Processes/graphics/globe2.gif" alt="globe" width="70" height="68" border="0" /></th>
          <th width="94%" align="left" valign="top"><span class="whitebanner">Composition Learning Center</span><br />
                         <span class="whitebanner2"><strong>Learn. Grow. Succeed.</strong></span></th>
        </tr>
      </table>
    </div>
      <div id="Layer4"><!-- InstanceBeginEditable name="Content" -->
    <h1 align="center">Glossary</h1>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" style="display:none" tabindex="0"></li>
        <li class="TabbedPanelsTab" tabindex="0">A</li>
        <li class="TabbedPanelsTab" tabindex="0">B</li>
        <li class="TabbedPanelsTab" tabindex="0">C</li>
        <li class="TabbedPanelsTab" tabindex="0">D</li>
        <li class="TabbedPanelsTab" tabindex="0">E</li>
        <li class="TabbedPanelsTab" tabindex="0">F</li>
        <li class="TabbedPanelsTab" tabindex="0">G</li>
        <li class="TabbedPanelsTab" tabindex="0">H</li>
        <li class="TabbedPanelsTab" tabindex="0">I</li>
        <li class="TabbedPanelsTab" tabindex="0">J</li>
        <li class="TabbedPanelsTab" tabindex="0">K</li>
        <li class="TabbedPanelsTab" tabindex="0">L</li>
        <li class="TabbedPanelsTab" tabindex="0">M</li>
        <li class="TabbedPanelsTab" tabindex="0">N</li>
        <li class="TabbedPanelsTab" tabindex="0">O</li>
        <li class="TabbedPanelsTab" tabindex="0">P</li>
        <li class="TabbedPanelsTab" tabindex="0">Q</li>
        <li class="TabbedPanelsTab" tabindex="0">R</li>
        <li class="TabbedPanelsTab" tabindex="0">S</li>
        <li class="TabbedPanelsTab" tabindex="0">T</li>
        <li class="TabbedPanelsTab" tabindex="0">U</li>
        <li class="TabbedPanelsTab" tabindex="0">V</li>
        <li class="TabbedPanelsTab" tabindex="0">W</li>
        <li class="TabbedPanelsTab" tabindex="0">X</li>
        <li class="TabbedPanelsTab" tabindex="0">Y</li>
        <li class="TabbedPanelsTab" tabindex="0">Z</li>
        <li class="TabbedPanelsTab" tabindex="0">0 to 9</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds2" class="StackedContainers">
            <div spry:repeat="ds2" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds3" class="StackedContainers">
            <div spry:repeat="ds3" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds4" class="StackedContainers">
            <div spry:repeat="ds4" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds5" class="StackedContainers">
            <div spry:repeat="ds5" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds6" class="StackedContainers">
            <div spry:repeat="ds6" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds7" class="StackedContainers">
            <div spry:repeat="ds7" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds8" class="StackedContainers">
            <div spry:repeat="ds8" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds9" class="StackedContainers">
            <div spry:repeat="ds9" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds10" class="StackedContainers">
            <div spry:repeat="ds10" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds11" class="StackedContainers">
            <div spry:repeat="ds11" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds12" class="StackedContainers">
            <div spry:repeat="ds12" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds13" class="StackedContainers">
            <div spry:repeat="ds13" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds14" class="StackedContainers">
            <div spry:repeat="ds14" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds15" class="StackedContainers">
            <div spry:repeat="ds15" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds16" class="StackedContainers">
            <div spry:repeat="ds16" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds17" class="StackedContainers">
            <div spry:repeat="ds17" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds18" class="StackedContainers">
            <div spry:repeat="ds18" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds19" class="StackedContainers">
            <div spry:repeat="ds19" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds20" class="StackedContainers">
            <div spry:repeat="ds20" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds21" class="StackedContainers">
            <div spry:repeat="ds21" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds22" class="StackedContainers">
            <div spry:repeat="ds22" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds23" class="StackedContainers">
            <div spry:repeat="ds23" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds24" class="StackedContainers">
            <div spry:repeat="ds24" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds25" class="StackedContainers">
            <div spry:repeat="ds25" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds26" class="StackedContainers">
            <div spry:repeat="ds26" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
          <div spry:region="ds27" class="StackedContainers">
            <div spry:repeat="ds27" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">
        <div spry:region="ds1" class="StackedContainers">
            <div spry:repeat="ds1" class="RowContainer"> <div id="w1d" class="RowColumn">{word}</div>
              <span class="RowColumn">{definition}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:0});
      </script><!-- InstanceEndEditable -->
    </div>
    </body>
    <!-- InstanceEnd --></html>

    Thanks Gramps.
    I totally forgot about the Xpath filtering.
    Trusty Hammer
    altruistic gramps <[email protected]>
    01/11/2011 05:06 PM
    Please respond to
    [email protected]
    To
    patrick dennis <[email protected]>
    cc
    Subject
    Spry Data Sets and IE8
    A quick fix: add the following to your document
    A better fix: reduce the number of datasets to just one and use Xpath
    filtering triggered by an onclick event, as in clicking the relevant tab.
    Gramps
    For a more specific answer, please supply a link to your site.

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

Maybe you are looking for