Sorting a filtered Spry dataSet

I am sure I am not understanding something simple, but help is needed.
I create a dataSet from an XML file and display it in a table inside a region. Each column head has the sort attribute. When I click any column head, the table resorts by toggling the column's sort order. This is what is supposed to happen.
Then the dataSet is filtered nondestructively and some rows are not displayed in the table. The filtering happens when the user selects an item in a drop-down list; the drop-down list's unchange event handler applies the filter to the dataSet.
Now when I click any column head, the table resorts but hides one of the existing rows and displays a previously hidden row. The newly displayed row does NOT satisfy the filter. With some investigation, I discovered that the filtering function is executed after a column head is clicked, even though the drop-down list is NOT touched, which is the only place I know that calls the filtering function.
So, what am I missing? Once the dataSet is filtered, shouldn't the user be able to resort the filtered table just as it is?
Thanks,
Van
Thread moved to Spry Framework forum

The files are currently "queued" by the server.. so i can only take a llook at your HTML.
The first thing i notice is your filter. Its rather inefficient.
What I would suggest is deleting your filterList function.. and replace it with this:
function filter(element){
     var product = element.value;
     function filterProducts(ds, row, rownumber){
          return row.product == product ? row : null;
     ds_AllManuals.filter(filterProducts);
and your select change it to:
<select name="productList" id="productListID" spry:repeatchildren="ds_AllProducts" onchange="filter(this);">
    <option value="{product}">{product}</option>
  </select>
what the it basicly doesn, on change it fires the filter function, with a reference to the current element in this case its "productListID" in the function we get the current value of the select and store it on our product variable.
Than our actual filter function will check if row.product has the same value as the product variable. If it does, it will return the row. Else it will return null.
After that we apply the function and it should hopefully work all fine.

Similar Messages

  • Spry Dataset Checkbox filters

    I'm using the spry dataset feature with an XML file. The XML is set up like so...
    <item>
         <image>(path to image)</image>
         <title>(short title)</title>
         <desc>(short description of image)</desc>
         <cat>(one of three categories: cars, shirts, graphics)</cat>
    </item>
    Ultimately my goal is to get 3 checkboxes(cars, shirts, graphics) to filter the spry content accordingly.
    What would be my best route for applying the filters?

    You are best off using xpath filtering as seen here http://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html
    I hope this helps.
    Ben

  • What advantages do Spry datasets have over database datasets

    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?

    whatalotofrubbish wrote:
    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?
    Hello,
    There are big difference between Datasets and databases. While I disagree with your point that Databases are easier to construct instead of Datasets. I understand your point. You should not see Datasets and databases as rivals of each others but more of a extension of each other. You use a database to store all your data and contents. When you execute a query on your database your will get a result set, or dataset. This usually the place when Spry could come in. You have data output from your database, now you just place it static on your page. Nothing wrong with that. But if you wish to create a interactive page it will usually require you to build allot of round trips to your server to present your data in different ways.
    With Spry these round trips can be handled on the client side. Once your users have received your data for the Spry Data Set there are allot things they can do with it, and usually faster than doing round trips to the server. For example your can sort and filter data sets, display information in a master and detail layout or even create different page states using the same data with out having to reload the page. This will create a more seamless experience for the user.
    For example our company is currently developing a search result page based on Spry Datasets. On the server side we have our database clusters that out the data for a search query. But this is usually 200+ result rows. In a traditional static website it would take a while for the user to digg through all results. Either by navigating to a next page, or filtering the dataset using forms.
    With Spry we now have our result set outputted as JSON (one of the formats Spry supports as data source for the Spry Data Set) we download it all to the client. And that is all they need. All sorting, filtering and pagination is done client side. So no more round trips to the server ( less server stress, and its faster ).
    I could go on about for hours but I hope this will give a general point of usages. If not take a look at the Spry demos. Which use Spry Data to create rich and interactive pages, and just imagine how you would have done that using traditional techniques and how long it would take you to build that.
    http://labs.adobe.com/technologies/spry/demos/

  • Spry dataset not working in Template - please help

    Hi all,
    I have a situation where when I pull a spry dataset from an
    xml file and display the contents in a table which works fine in a
    regular html page but not a template formed page for repeatable
    region.
    The error I get is FAILED TO RETRIEVE DATA SET FOR SPRY
    REPEAT. Prior to that it tells me GetParentDataSet is null or not
    an object. I tried setting up a repeat region around the repeated
    rows but that didn't work either. So I pulled everything else out
    that might be causing the problem but nothing. I checked the
    pathing as well for the spry assets and it checks out okay.
    Anyway, here's the template.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <link href="../styles/style.css" rel="stylesheet"
    type="text/css">
    <link href="../styles/linkB.css" rel="stylesheet"
    type="text/css">
    <link href="../styles/linkA.css" rel="stylesheet"
    type="text/css">
    <!-- TemplateEndEditable -->
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type=”text/javascript”>
    // Setup nested data sets:
    var dsReagCons = new
    Spry.Data.XMLDataSet("../xml/consumables.xml",
    "electrodes_and_accessories/item[@catno='il_acl100_7000_coag_systems']");
    </script>
    </head>
    <body>
    <!-- Main body contents -->
    <!-- TemplateBeginEditable name="EditRegion3" -->This
    is a test
    <!-- TemplateEndEditable -->
    <div spry:region="dsReagCons">
    <table align='center' width='680' border='1'
    cellpadding='3' cellspacing='0' class='form'>
    <tr>
    <td colspan='5' class='prodHead' >Electrodes and
    Accessories</td>
    </tr>
    <tr class='prodHead2'>
    <td spry:sort="ddi_cat_no" width='80'>Diamond<br
    />
    Cat. No.</td>
    <td spry:sort="oem_cat_no" width='80'>OEM<br />
    Cat. No.</td>
    <td width='300'>Description</td>
    <td spry:sort="models" width='100'>Models</td>
    <td width='45'>UOM</td>
    </tr>
    <tr spry:repeat="dsReagCons">
    <td>{dsReagCons::ddi_cat_no}</td>
    <td>{dsReagCons::oem_cat_no}</td>
    <td>{dsReagCons::desc}</td>
    <td>{dsReagCons::models}</td>
    <td>{dsReagCons::uom}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    What am I missing here? Like I said I even tried putting a
    repeat region around the table itself.
    Thanks,
    -- Jim

    Hey,
    Good to have a comm expert on this. Actually I solved the
    problem. It was combination of what I was doing within the template
    and the way the xml file was formed. Also, I had to use a template
    parameter to feed a spry:test filter.
    Thanks for getting back to me anyway.
    -- Jim

  • GROUP BY in SPRY DATASET

    Hi,
    how can I set a GROUP BY in my Spry-Dataset? I got lots of <city> tags that sometimes contain the same city. And I dont want them all to be shown in the list only 1 time.
    Thanks for help,
    Denis

    DenisCGN wrote:
    :-) this is where I always look at. But understand nothing :-)
    It starts already here: function( ds, row, index ) where do I find ds? row? index? In the filter you showed me yesterday, it was written like that, too.
    the ds, row, and index are arguements of the function. Its basically in the information that Spry sends to your filter function that you can use to filter rows in your database.
    ds, is a reference to the current dataset that will have the filter applied,
    row, is a reference to the current row of your dataset that the filter is checking.
    index, is the current row number that is getting filtered.
    You can use these values to compile your own custom filter, as i did in example posted above. It uses the row variable to check for data in the current filtered row, and decided based on the information of that row, if the filter function should return the row, or remove the row ( return nothing );
    This is only one of the points. the other point is, that I dont know what to look for, when I need help. This filter thing from yesterday, is, nice, works only half, and brings me to the next frontier, like that GROUP BY thing, and that the dropdown fields are closed.
    There are a few points to look for information, when i first started, i used allot code from the examples. And searched the Spry API for information. And bought a few books on JavaScript. ( Spry got me hooked on JavaScript ). The Spry Docs is basically the base source of information. It links to almost everything you need. For more about data sets I would really suggest reading the articles that are bundled with Spry.
    These pages are bookmarked by me:
    http://labs.adobe.com/technologies/spry/docs.html
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    http://labs.adobe.com/technologies/spry/samples/
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
    http://labs.adobe.com/technologies/spry/articles/best_practices/index.html
    http://labs.adobe.com/technologies/spry/widgets/widgets.html
    When i got more used to Spry and JavaScript in I got most of my knowledge by analising all functions in side of Spry, all methods and functions properties, understanding how things work, and why things work. So i can provide better solutions for problems.
    When I got one, I got 3 new problems. Thats not so in PHP.
    An other thing is, that the german characters arent displayed right. and and and and...
    :-) I got to have a coffee now...
    Denis
    set column types to HTML, make sure you have the correct iso set for your XML and page. If you page is "iso-8859-15" make sure your XML and data is that as well. The same counts for UTF-8 and other encodings.

  • Spry dataset ie9 display anomaly

    I have a well-formed XML data set with 6 fields per record derived from an Excel spreadsheet which displays exactly as expected in Firefox using a Spry dataset constructed by Dreamweaver CS5..
    In IE9, however, an extra blank field is inserted somewhere around every 1000 fields or so which shifts the remaining fields of that record to the right into the margin area.
    This smells like a rendering bug in IE9, but if anyone has a better idea and a fix, I'd be very happy to hear from them.
    The site is not quite ready to go live, so I can't yet give you a url.

    Curiosity got the better of me.
    I use DW CS5 and this doesn't come with the CSVdataset option, but I found SpryCSVdataset.js on the web and cobbled together appropriate syntax with some difficulty given the paucity of documentation on the subject.  CSV doesn't show up as an option in the bindings panel, so it has to be done by hand.
    The csv file has the headings as the first record.  There is available syntax to override this and to add your own headings in the ds1 declaration.
    In case it helps anyone, the end result was:
    <head>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCSVDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    var ds1 = new Spry.Data.CSVDataSet("CSVdatafile.csv");
    </script>
    </head>
    <div spry:region="ds1" id="memorial">
    <table width="900" border="0">
      <tr class="spryEven">
        <th onClick="ds1.sort('No','toggle')">No</th>
        <th onClick="ds1.sort('Initials','toggle')">Initials</th>
        <th onClick="ds1.sort('Surname','toggle')">Surname</th>
        <th onClick="ds1.sort('Served','toggle')">Served</th>
        <th onClick="ds1.sort('Role','toggle')">Role</th>
    <th onClick="ds1.sort('Where','toggle')">Died</th>
        <th onClick="ds1.sort('When','toggle')">When</th>
      </tr>
      <tr spry:repeat="ds1" spry:odd="spryOdd" spry:even="spryEven">
        <td>{No}</td>
        <td>{Initials}</td>
        <td>{Surname}</td>
        <td>{Served}</td>
        <td>{Role}</td>
        <td>{Where}</td>
        <td>{When}</td>
      </tr>
    </table>
    </div>
    This generates the required display and the csv datafile is only 75k against 250k for the XML, which is a bonus.
    However, the display problem is still there!
    Experimenting by dropping fields and changing table width, it looks to me like there might be a rendering bug related to the width of the fields relative to the available column width (which so far I haven't found any way to control manually) and the number of wrapped fields ahead of the problem point.  Possibly something in the word wrap logic that only appears in IE?
    csv is also much more sensitive to empty fields than XML.

  • Problem with sorting and filtering of table

    Hello,
    using VC 7.1 SP5 I have created [this|http://img232.imageshack.us/img232/2460/screenshotsr0.png] model. The webservice returns a collection of structured elements. The table is meant to display values of top-level attributes. This works as expected.
    However, the table cannot be sorted or filtered. What is the reason for this? How can I fix that?
    I tried to store the result of the web service in a data bridge. That did not succeed.
    Best regards
    Alexander

    Hi Natty,
    How are you trying to sort it?
    I want to be able to sort the table by clicking on the table column headers. Furthermore, I want be able to filter the table by using the built-in table feature. However, table sorting and filtering seem to be disabled for this particular table, whereas other tables in my model provide the desired features.
    Best regards
    Alexander

  • Dw cs5.5 + Phonegap + spry dataset xml and images links broken

    Hi all,
    I'm building an app using DW CS5.5 and Phonegap.
    This is what I've done:
    created pages using the starter template (local)
    I created a php page that run a query on a mysql database and output an xml file
    I created a spry dataset using the php (see 2) file as data file
    It works locally and on-line on my website.
    But if I package an app using the android sdk from dw CS5.5 I have problems: all images are all broken. It seems that the link to image is not correct.
    In fact, all images are not using absolute path (http://www.mysite.com/images/...) but are set this way: /images/....
    So, my question is: have I to specify all images sources using absolute paths to make it work when packaged?
    TIA for any reply
    tony

    Hi Gramps,
    I just solved the problem with image paths (I made all src paths absolute).
    There is only one problem left: I opened another discussion: http://goo.gl/ysNDH
    But here the link you (correctly) need to trobleshoot the problem): http://www.camar.it/newsxml
    It should work on desktop browsers but it fails when I pack the app for android and install it on an android smartphone: I get "error loading page" when clicking on any details link (the button label is: DETTAGLI) on the news page.
    Tony

  • How can i hide a portion of the text inside a spry dataset "stackedcolumn"?

    Hi all
    I have a spry dataset set up reading a .xml file for the price/name/description/etc. I want to only show some of the text (a certain number of characters) at the start then give the visitor the option of clicking a toggle button to see more of the description and help with size of the pages.  How do i do that exactly?
    I know I have to probably implement jquery toggle but how does it work with a spry?
    here is the code as it stands.
       <div spry:region="catalog" class="SpotlightAndStacked">
          <div spry:repeat="catalog" class="SpotlightAndStackedRow">
            <div class="SpotlightContainer">
              <div class="SpotlightColumn"><a href="_images/catalog/Art/{Picture_File}" title="{Headline}"><img src="_images/catalog/thumbs/Art/{Picture_File}"></a></div>
            </div>
            <div class="StackedContainer">
              <div class="StackedColumn"> {Item_Last_Name}, {Item_First_Name}</div>
              <div class="StackedColumn"> {Item_Code_Number}</div>
              <div class="StackedColumn"> {Headline}</div>
              <div class="StackedColumn"> {Complete_Description}</div>
              <div class="StackedColumn"> {Item_Code_Number}</div>
              <div class="StackedColumn"> <strong>Retail price: {Retail_Price}</strong></div>
            </div>
            <br style="clear:both; line-height: 0px" />
          </div>
        </div>
    Thanks in Advance

    There are many options for editing objects/layers in the time line. You can split tracks, slip videp, trim, delete, cut, copy and paste etc. Without more specifics about what you want to do I would suggest you review the users guide. Select help to open the manual and then go to Timeline>Edit objects in the timeline. I am sure you will find the answer to your question.

  • Spry dataset is not working properly in IE8, Help me plz...

    I am a new user of dreamweaver CS5. I have designed some pages which are using Spry Dataset. It is working perfect in Firefox and IE 7 but it was not working at all in IE 8. Ben asked me to paste the following into the <HEAD> section
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    and after doing that it was working properly. But today I tested my site again and I came to know that it is only showing the Master Table, when we click on any master Picture of Spry Dataset it is not showing the details.
    Here is the link of  my site
    http://dsdforu.com/WomensKNewArrivalCollection.htmlhttp://www.dsdforu.com/WomensKSDWCollection.html
    I was trying to solve it by myself but I can't. Can any one tell me what am I doing wrong? or what would be the solution.
    Thanks for your time.
    Suboohi

    Hi Suboohi,
    I think the problem may be the pictures themselves. They do not seem to be loading quickly which gives the impression that they are not showing, especially when you have a slow connection.
    You might look at optomising the pictures and preloading the images to allow your site to work properly.
    I hope this helps.
    Ben

  • Can I link to specific items in a Spry dataset?

    I have a website for a community festival.  I'm using a spry dataset for the festival events http://www.horizonfest.co.uk/programme/events.html .  Visitors click on an event in the left hand column and it appears on the right.
    The festival programme is on this page: http://www.horizonfest.co.uk/programme/sitemap.html .  If you scroll down to for example the evening event on 16 July, it will take you to the events page (first link above).  My clients would like it to open the event for 16 July on the events page (and similarly for any event).  At the moment visitors have to scroll down and open the event themselves.
    I have tried putting an anchor in the 16 July data item.  I am not surprised it doesn't work because the anchor is effectively on a different page.
    So, is there any way of doing this?  I'll be pleased if the answer is definitively 'no'.  I'll be delighted if there is a way of doing this.  If there isn't it may be something to look at in the future.
    I subscribe to creative cloud.
    Thank you
    Chris Sissons

    I'm sorry I don't have an answer for you other than to say it's a grim future for Spry.   Adobe abandoned the framework late last year with no plans for future development with it.
    Nancy O.

  • Slimbox not working with Spry Dataset

    Hi there,
    I'm trying to populate a page with Spry Dataset and use Slimbox2 to show a set of 4 images when a thumbnail is clicked.
    The original webpage WITHOUT Spry Dataset is here:
    http://shadowmuseum.com/portfolio/p-web.html
    Currently it works with just slimbox, but as soon as I add a Spry Dataset, the large images won't load anymore. When a thumbnail is clicked on, it opens the 1st large image of the set in a new page, completely removing the lightbox effect.
    I've scouted the internet for solutions; it's been suggested that slimbox doesn't work because spry doesn't have time to load the content first. But I'm not savvy with javascript at all, so have no idea how to work around it....
    Any help would be greatly appreciated.
    Thanks a lot.
    P.S. Below is the HTML code for the page with both spry & slimbox:
    <!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="/Templates/bone.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="keywords" content="Shadow Museum, design, photography, london, web, web design, ana, ana lorraine lui, benjamin, backhouse, E1, E8, N16, graphic design, st martins, creative, agency, bespoke, multi-disciplinary" /><meta name="description" content="London based bespoke multi-disciplinary creative agency. Services include web design, photography, print design, and filmmaking." />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Shadow Museum || London-based bespoke multi-disciplinary creative agency</title>
    <script type="text/javascript" src="../zzAssets/scripts/Lightbox/jquery-1.3.1.min.js"></script>
    <script type="text/javascript" src="../zzAssets/scripts/Lightbox/js/slimbox2.js"></script>
    <script src="../zzAssets/scripts/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../zzAssets/scripts/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../zzAssets/scripts/Lightbox/css/slimbox2.css" type="text/css" media="screen" />
    <!-- InstanceEndEditable -->
    <link href="../zzAssets/scripts/main.css" rel="stylesheet" type="text/css" />
    <script src="../zzAssets/scripts/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../zzAssets/scripts/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../zzAssets/scripts/clock/clockp.js"></script>
    <script type="text/javascript" src="../zzAssets/scripts/clock/clockh.js"></script>
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript">
    <!--
    var dsWeb = new Spry.Data.XMLDataSet("p-web.xml", "portfolio/project");
    dsWeb.setColumnType("info", "html");
    //-->
    </script>
    <!-- InstanceEndEditable --><!-- InstanceParam name="footer" type="boolean" value="true" --><!-- InstanceParam name="clock" type="boolean" value="true" -->
    </head>
    <body>
    <div id="clock_a"></div>
    <div id="menu">
      <ul id="mainMenu" class="MenuBarHorizontal">
        <li><a href="../index.html">Home</a>      </li>
        <li><a href="../news/news.html">News</a></li>
        <li><a class="MenuBarItemSubmenu" href="#">About</a>
            <ul>
              <li><a href="../about/our_story.html">Our Story</a></li>
              <li><a href="../about/our_values.html">Our Values</a></li>
            </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Services</a>
          <ul>
            <li><a href="../services/web_design.html">Web Design</a></li>
            <li><a href="../services/print_design.html">Print Design</a></li>
            <li><a href="../services/photography.html">Photography</a></li>
            <li><a href="../services/filmmaking.html">Filmmaking</a></li>
            </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Portfolio</a>
          <ul>
            <li><a href="p-web.html">Web Design</a></li>
            <li><a href="p-print.html">Print Design</a></li>
            <li><a href="p-photography.html">Photography</a></li>
            <li><a href="p-filmmaking.html">Filmmaking</a></li>
          </ul>
        </li>
        <li><a href="../contact/contact.html">Contact</a></li>
      </ul>
    </div>
    <!-- InstanceBeginEditable name="content area" -->
    <div id="content">
      <div id="p-web">
        <h2>Web  Portfolio</h2>
         <div class="SpryHiddenRegion" spry:region="dsWeb">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr spry:repeat="dsWeb">
            <td align="center" valign="top">
                   <a href="../zzAssets/images/p-web/{pic1}" rel="{label}" title="{title}"><img src="../zzAssets/images/p-web/{thm}" width="180" height="130" /></a>
                   <a href="../zzAssets/images/p-web/{pic2}" rel="{label}" title="{title}"></a>
                   <a href="../zzAssets/images/p-web/{pic3}" rel="{label}" title="{title}"></a>
                   <a href="../zzAssets/images/p-web/{pic4}" rel="{label}" title="{title}"></a>
              </td>
            <td align="left" valign="top">
                   <h3>{title}</h3>
                   {info}
                   <p><a href="http://{url}" target="_blank">{url-label}</a></p>
              </td>
          </tr>
        </table>
         </div>
        <p> </p>
      </div>
    </div>
    <!-- InstanceEndEditable -->
    <div id="footer">
      <div id="watermarkRight">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left" valign="top">©2009 Shadow Museum | Company Number 6576238
              | <a href="../terms.html" class="colourless">Terms &amp; Conditions</a></td>
            <td align="right" valign="top">contact us: <a href="mailto:[email protected]">[email protected]</a></td>
          </tr>
        </table>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("mainMenu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>

    You are not re-initializing the lightbox library code after Spry have generated the markup.
    You can use the Spry region observer onPostUpdate to get notified of region re-generation and recall the initialization code of the lightbox.

  • Link to image in Spry dataset

    With Acces you create the dataset and then just pull the dataentry into the link box and you're done.
    I know hot to make the link open in a new page but how to put the data into the link box using a spry dataset??
    Tried pulling it to the link box but id soent work... any ideas??

    edited my first post and I hope for a reply

  • Results (totals) row in spry datasets

    Hi everybody.
    I spent a lot of time on the problem how to get row with
    result of the spry dataset.
    And I found it:
    Javascript code:
    // This is our dataset
    var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm",
    {path:"rows"});
    // This is dataset for results
    var dsSums = new Spry.Data.JSONDataSet();
    // Loading empty array to results
    dsSums.loadDataIntoDataSet("[]");
    var myObserver = new Object;
    // Calculate function will run each time when data will
    change
    myObserver.onDataChanged = function(dataSet, data) {
    calcTotals(); }
    dsSpecials.addObserver(myObserver);
    var calcTotals = function() {
    var tsums = [];
    var rows = dsSpecials.data;
    // ... here you calculate what you need...
    dsSums.loadDataIntoDataSet(Spry.Utils.serializeObject(tsums));
    And now, the final part - HTML code:
    <div spry:region="dsSpecials dsSums"
    class="SpryHiddenRegion">
    <table>
    <tr spry:repeat="dsSpecials">
    </tr>
    <tr spry:repeat="dsSums">
    </tr>
    </table>
    </div>

    Loveanie wrote:
    > There seems to have a bug in the final release of DW CS4
    that wasn't there in
    > the Beta version: when we create an html Spry dataset
    and we check the
    > "Advanced data selection" option, DW automatically adds
    a row with column0,
    > column1, and so on. This row doesn't do anything good
    It identifies the column. In Step 2, you can select each
    column and
    change its name in the Column Name field at the top of the
    wizard.
    Without a column name, the Spry data set has no way of
    identifying the
    data you want to display.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Using Multiple Spry datasets? - regarding Regions: DetailContainer/DetailRegion

    Hi Spry experts:
    I've been battling a good battle: Spry datasets and mobile app development. I'm making headway, but as is true in life, there are problems.  I've professor googled for several days related to the current issue without success. I'm throwing in the towel and asking for help.
    I have a jquery mobile project I am developing in dreamweaver cs 5.5. I created a Spry HTML dataset to populate 3 lists on separate pages. Each list page is populated by a single html file that contains 3 tables with different ids.
    Each table has 3 rows (name, image, desc). Each list is populated using the "name" field from each table. The lists part is all working just fine.
    However, when a list item is selected (clicked), it is supposed to take the user to another page (details). There are three details pages--one for each list. These pages are for the item details. Each details page uses the same basic code. Only one page works. If I switch the location of the detail pages in DW, the page that is closest to the list pages is the one that works. I know that I am doing something that is pretty plain to someone who knows Spry, but I'm lost as to what to do next. I've tried multiple fixes and read many Spry documents. A HUGE thanks in advance to anyone who knows the answer. If you need more information, please let me know. 
    The expected behavior is that whatever list item is clicked the item should jump to the details page and load the data.
    Here is the code for the details pages:
    <!--*****************************************************************************-->
    <!--Description page for items from list 1-->
    <!--*****************************************************************************-->
    <div data-role="page" id="details_list1"
    data-add-back-btn="true" data-theme="c">
    <div data-role="header">
      <h1>Details List 1</h1>
    </div>
    <div data-role="content">
    <h2><span class="DetailContainer">
    <span spry:detailregion="dsList1">{dsList1::name}</span></span></h2>
    <p class="DetailColumn" align="center">
    <span class="DetailContainer">
    <span spry:detailregion="dsList1"
    class="DetailContainer">{dsList1::image}</span></span></p>
    <p class="DetailColumn"><span class="DetailContainer">
    <span spry:detailregion="dsList1" class="DetailContainer">
    {dsList1::desc}</span></span></p>
    <span class="DetailContainer">
    <span spry:detailregion="dsList1"
    class="DetailContainer"><br />
    </span></span><br>
    <br>
    </div>
    <!--*****************************************************************************-->
    <!--Description page for List 2-->
    <!--*****************************************************************************-->
    <div data-role="page" id="description_list2" data-add-back-btn="true" data-theme="e">
    <div data-role="header">
      <h1>List 2 Details</h1>
    </div>
    <div data-role="content">
    <h2><span class="DetailContainer">
    <span spry:detailregion="dsList2">
    {dsList2::sign}</span></span></h2>
    <p class="DetailColumn" align="center">
    <span class="DetailContainer">
    <span spry:detailregion="dsList2" class="DetailContainer">
    {dsList2::image}</span></span></p>
    <p class="DetailColumn"><span class="DetailContainer">
    <span spry:detailregion="dsList2" class="DetailContainer">
    {dsList2::desc}</span></span></p>
    <span class="DetailContainer"><span spry:detailregion="dsList2" class="DetailContainer"><br />
    </span></span><br>
    <br>
    </div>
    <!--*****************************************************************************-->
    <!--Description page for List 3-->
    <!--*****************************************************************************-->
    <div data-role="page" id="description_list3" data-add-back-btn="true" data-theme="e">
    <div data-role="header">
      <h1>List 3 Details</h1>
    </div>
    <div data-role="content">
    <h2><span class="DetailContainer">
    <span spry:detailregion="dsList3">
    {dsList3::sign}</span></span></h2>
    <p class="DetailColumn" align="center">
    <span class="DetailContainer">
    <span spry:detailregion="dsList3" class="DetailContainer">
    {dsList3::image}</span></span></p>
    <p class="DetailColumn"><span class="DetailContainer">
    <span spry:detailregion="dsList3" class="DetailContainer">
    {dsList3::desc}</span></span></p>
    <span class="DetailContainer"><span spry:detailregion="dsList3" class="DetailContainer"><br />
    </span></span><br>
    <br>
    </div>

    I've been battling a good battle: Spry datasets and mobile app development.
    Is this an offline app?
    If not, then please post a link to your site.
    Gramps

Maybe you are looking for

  • Using MM excise invoice details in SD report

    hi friends, i have a requirement that i have to use MM excise invoice details in SD report. inwhich both billing document nos are same . can any one explains the clear solution for this report. thanks in advance. Regards, karunakar Moderator message:

  • IPhone is appearing in iTunes, but only Summary, all content not appear

    I have a problem, I want transfer my music from iTunse to my new iPhone 5, I have upgrade my iTunes to the latest version, I have restart my PC, when i connect my iPhone to PC my iPhone is appear in iTunes, But i get this message "iTunes cannot read

  • Simple program but error?

    hi everyone!! i am trying to make a simple help file displaying hi and how are you in text area.the compilation gives no error but still i can't run that.can anyone please tell me how to solve my problem of making a simple help screen display... impo

  • Archivelog failed to apply "Checksum error"

    Hello, I am getting this error on my Data gaurd DRP database after applying some archive logs and then i receive this error. All arch files are on server but it doesn't seem to like one as all the previous have been applied Mon Jan 19 12:42:26 2009 M

  • ESB TDM Plug in missing

    I try to use EXS Instruments on my DAE AUX objects. I am not able to do so, althoug I was able to do so in OS9 wiht out problems. Logic during start up complaints "ESB Plug In missing". Consequently when I try to make an Audio object to a TDM object,