Spry Repeat a column

Hi,
Is there any way yo do a spry repeat over columns instead of
rows?

did u try something like this? :
<table width="100%" border="0">
<tbody spry:region="ds1" spry:repeat="ds1">
<tr>
<td>{name}</td>
<td>{category}</td>
<td>{Other}</td>
</tr>
</tbody>
</table>
if that doesnt help maby check out the products demo
http://labs.adobe.com/technologies/spry/demos

Similar Messages

  • Spry:repeat display data in multiple rows/columns

    I know how to use spry:repeat to display data in table rows,
    one item per row.
    Is there a way to tell spry to display data in a grid of x
    rows by y columns?
    I'm trying to maximize the page's real estate. Here is the
    page
    http://www.jannah.com/mp3/browse.html
    Click on "Artist/Scholar" in "STEP1" section. "STEP2" section
    gets filled with a list. I'm trying to display that list in 3
    columns and as many rows as needed. How do I do that?
    While I'm at it, I also can't figure out why the spry:select
    is not working for "STEP2" section; I need to click twice on the
    same item to get it highlighted. the other spry selects on the page
    work ok. Can someone take a look.
    Greatly appreciated.

    You can't use Spry with tables to do this, but if you're up
    to using a div based layout/presentation, it is possible. Check out
    the Zuggest sample:
    http://labs.adobe.com/technologies/spry/samples/data_region/ZuggestSample.html
    It uses floated divs to get the same effect. The nice thing
    about using divs, is that more columns dynamically appear as the
    horizontal real-estate is expanded.
    --== Kin ==--

  • Spry repeat rows and columns

    How do I set up the spry repeat to show an image repeat in 3
    rows of 3?
    img img img
    img img img
    img img img
    and to continue to repeat even if it's more than 9 items, say
    10? to continue repeating based off of dynamic XML content:
    img img img
    img img img
    img img img
    img
    I've looked at the demo:
    http://labs.adobe.com/technologies/spry/demos/gallery/index.html
    but had difficulty finding the js for the repeat instead of
    the player function.
    Thanks!

    Hi,
    See my reply to your other post, again use CSS to achieve
    this
    <div class="photobox">
    <div class="thumbNail" spry:repeat="Photos">
    <a
    href="ePhotos.asp?imgUrl={Photos::imgUrl}&imgAlt={Photos::imgAlt}"
    target="_blank" ><img src="{Photos::imgUrl}"
    alt="{Photos::imgAlt}"></a> </div>
    </div>
    </div>
    The CSS for photobox div is straight forward
    .photobox {
    width: 720px;
    The CSS for thumbNail in the previous post sizes them at
    200px wide. so since they are contained in the photobox div they
    are limted to a div 720px wide (since 4x200px = 800 > 720 the
    4th image must start a new row). So you can only fit three images
    across (inline) per row and you achieve exactly what you require.
    Cheers
    Phil

  • Work around for spry:repeat="ds1 ds2" limitation

    I need to have both data sets repeat when using a Spry repeating region:
    <div id="apDiv4" spry:region="ds1 ds2">
        <table class="sprytable" border="1">
          <tr>
            <th spry:sort="Q#">Q#</th>
            <th spry:sort="Category">Category</th>
            <th spry:sort="Question">Question</th>
            <th spry:sort="You">You</th>
          </tr>
          <tr spry:repeat="ds1 ds2">
            <td>{ds1::Q#}</td>
            <td>{ds1::Category}</td>
            <td>{ds1::Question}</td>
            <td>{ds2::You}</td>
          </tr>
        </table>
    </div>
    If I use ds1 in the spry:repeat, ds1 data will repeat (but ds2 will use the first value); or if I specify ds2, ds1 will use the first value.
    I need them both to repeat.
    I have spent so much time in forums, etc. and can't seem to find a workaround.
    My only work around is to combine ds1 and ds2 and reload them together from the server - yuk!
    ds1 is fixed and large. ds2 is small and dynamic so reloading really sucks.
    Following are the ds Vars - probably irrelevent:
    var ds1 = new Spry.Data.HTMLDataSet(null, "rsfamily", {sortOnLoad: "Q#", sortOrderOnLoad: "ascending" }); ds1.setColumnType("Q#", "number"); var ds2 = new Spry.Data.HTMLDataSet("youranswersIRtab.php", "youranswerstab", {}); I will worship the person who gives me an idea.
    Thanks

    Thanks V1, timkho and coolsanwa for your thoughts.  Since you've been so patient (and understanding) let me briefly tell you what I'm trying to do.
    I'm considered good at multi-dimensional databases and have recently fallen in love with DreamWeaver to build a pretty complex site so I don't have to be a real expert at PHP, Spry, Ajax, JavaScript, DOM, HTML, CSS etc (I suck, but most everything is working).
    I wish I could point you to a site but I need to keep it secret for a bit - its strictly on my PC for now.
    Let me explain the snippit, which I still don't have working .
    ds1 has three columns and ds2 has one.
    ds1          ds1               ds1                         ds2               ds3
    Q#          Category         Question                 You               Compare1
    1          Boats               How big?                    24               36
    2          Boats               What color?               Blue               Red
    3          House               Number rooms?          3                    6
    4          House               Sq feet?                    1000               3000
    5          House               Have garage?               No               Yes
    etc to 200+
    ds1 doesn't change and I don't want to reload it
    ds2 are your saved answers (I will have a form to fill in and a Submit-  different subject)
    ds3 is user selected comparisons, retrieved from a MD database (academic because ds2 has me stopped).
    Category has table row classes (to whole row), which will drive Tabbed Panels.
    ds1, ds2, ds3 data have the class assigned to each row (setRowSelector) classes for columns(setColumnSelector).
    I want a Spry Table with its many neat features (eg. sorting) that combines the 3 ds's (lets worry about 2 for now).
    Incredibly simple but I'm stuck.
    Timko suggestion results in syntax error- removing single quotes.
    Collsanwa suggestion creates new columns so repeat is done for each row after You column:
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    24,Blue,3,1000,No
    200+ times
    (I'll repeat the snippit) . Could you point me to an explanation for the spry:if  id/mmid
    Thanks so much.
    <div id="apDiv4" spry:region="ds1 ds2">
        <table class="sprytable" border="1">
          <tr>
            <th spry:sort="Q#">Q#</th>
            <th spry:sort="Category">Category</th>
            <th spry:sort="Question">Question</th>
            <th spry:sort="You">You</th>
          </tr>
          <tr spry:repeat="ds1">
            <td>{ds1::Q#}</td>
            <td>{ds1::Category}</td>
            <td>{ds1::Question}</td>
            <td spry:repeat="ds2" spry:if="'{ds1::id}' == '{ds2::mmid}'">{ds2::You}</td>
    <!--    <td spry:repeat="ds2" spry:if="{ds1::id} == {ds2::mmid}">{ds2::You}</td>   Syntax error w/o quote-->
          </tr>
        </table>
    </div>

  • Adding a Counter to Spry Repeat List

    Hi, this might seem like a relatively simple problem but after spending some time, I haven't yet arrived at an appropriate solution.
    1. I have spry repeat list.
    2. I want add a counter (required by a javascript function nested within the repeat list).
    I have tried ds2.getCurrentRowID and that failed.
    One simple way of thinking of the problem is: how would you modify a spry repeat list to display each row, numbered 1 through n down the left-hand column?
                <tr spry:repeat="ds2" spry:odd="evenRowVenue" spry:even="oddRowVenue" spry:hover="hoverVenue" onClick="MM_callJS('GEvent.trigger(venue_list[INCREMENTING COUNTER HERE],\'click\');')">
                  <td align="left"><a href="venue_show.php?vid={@vid}">{@name}</a></td>
                  <td align="left">{@street1}</td>
                  <td align="left">{@city_suburb}</td>
                  <td align="left">{@state}</td>
                  <td align="left">{@country}</td>
                  <td align="left">{@rating}</td>
                </tr>

    secondliver wrote:
    Hi, this might seem like a relatively simple problem but after spending some time, I haven't yet arrived at an appropriate solution.
    1. I have spry repeat list.
    2. I want add a counter (required by a javascript function nested within the repeat list).
    I have tried ds2.getCurrentRowID and that failed.
    One simple way of thinking of the problem is: how would you modify a spry repeat list to display each row, numbered 1 through n down the left-hand column?
                <tr spry:repeat="ds2" spry:odd="evenRowVenue" spry:even="oddRowVenue" spry:hover="hoverVenue" onClick="MM_callJS('GEvent.trigger(venue_list[INCREMENTING COUNTER HERE],\'click\');')">
                  <td align="left"><a href="venue_show.php?vid={@vid}">{@name}</a></td>
                  <td align="left">{@street1}</td>
                  <td align="left">{@city_suburb}</td>
                  <td align="left">{@state}</td>
                  <td align="left">{@country}</td>
                  <td align="left">{@rating}</td>
                </tr>
    {ds_RowNumber} is what you are looking for.
    So in you case:
    onClick="MM_callJS('GEvent.trigger(venue_list[{ds_RowNumber}],\'click\');')">

  • Spry repeat Region

    I am creating a staff page for our school using Dreamweaver
    CS3. I can create a spry region and a repeat region and the staff
    image and its caption get displayed but he repeat ocuurs in a
    stacked format. Is there any way to configure the repeat to occur
    like a table (so many columns and rows concept). Thanks.
    Darren

    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="50%"><div spry:region="{ds1}">
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td spry:repeat="ds1">{thumbnails}</td>
    </tr>
    </table></div></td>
    <td><div spry:detailregion="ds1">{Detail
    Region}</div></td>
    </tr>
    </table>
    I'm not sure how this would work for alot of thumbnails, but
    it works for what I used it for (4 thumbnails across the
    row)

  • Spry repeat list break DW insert transaction?

    Hi,
    Does anyone know if spry repeat lists are recognized by DW as input devices? I added a few to a form, which uses the builtin DW insert record wizard, and they don't show up with the other controls in the server behavior list and they break the transaction (red ! on the insert transaction).
    Are there configuration issues? Or are these widgets only for search and display forms?
    Thanks for any help,
    Tony

    Hi Tony,
    I´m sure that the SPRY repeat lists you´re creating would need some heavy modification in order to become "regular" ADDT dropdown menus -- what they would need at least, is some embedded string comparison (aka PHP´s "strcmp" function) for displaying an existing column value as "SELECTED", like ADDT´s menus do:
    ...and I don´t think your Spry lists provide this for each list option.
    and they don't show up with the other controls in the server behavior list
    it seems as if those lists have one or more required elements missing which DW needs to accept them as valid "control". You can actually check the differences by opening an other ADDT form containing a valid control and taking a look at the HTML/PHP code of that list -- what does it have what your Spry list doesn´t ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Spry:repeat and CDATA

    Hi all,
    I'm trying to get CDATAs from a XML-file. But it doesn't work
    within a spry:repeat so far, but maybe I'm missing something (see
    code). All I get is an empty field-column. {field} is tagged with
    CDATA. The {@id} is performing well.
    Any ideas?
    Thank you,
    Thomas

    Hi all,
    I'm trying to get CDATAs from a XML-file. But it doesn't work
    within a spry:repeat so far, but maybe I'm missing something (see
    code). All I get is an empty field-column. {field} is tagged with
    CDATA. The {@id} is performing well.
    Any ideas?
    Thank you,
    Thomas

  • Spry repeat row

    How do I get spry repeat to put images in a row instead of
    the default column in javascript?
    Thanks!

    Hi,
    Control this via CSS. You need to specify that the display of
    the images is inline to show them in a row. See display propoerty
    in the CSS below from one of my live web pages for an image
    gallery.
    .thumbNail {
    width: 200px;
    height: 200px;
    display: inline;
    margin: 0px;
    border-top-color: #369;
    border-right-color: #369;
    border-bottom-color: #369;
    border-left-color: #369;
    Then the HMTL / Spry code in your page needs to be like below
    div class="thumbNail" spry:repeat="Photos">
    <a
    href="ePhotos.asp?imgUrl={Photos::imgUrl}&imgAlt={Photos::imgAlt}"
    target="_blank" ><img src="{Photos::imgUrl}"
    alt="{Photos::imgAlt}"></a> </div>
    </div>
    Then you won't need to do anything extra in javascript
    Regards
    Phil

  • How to repeat the column header on each page of the report?

    Can any of you please suggest me on how to repeat the column titles on a table if the table extends over several pages:
    I tried the below action present in Re: How to make the column title needs to be on each page? It worked fine for the pdf format whereas its not working for rtf format output.
    Can anybody help on this?

    I guess this has been taken as bug,
    may be some patch got released for it..iam not sure..

  • Problem with Spry:Repeat and Slide Effect on IE6

    I run the website for my kids' hockey association and I'm not
    a web programmer. I am trying to display events in a Spry region
    using spry:repeat. The data is coming from a Google Calendar . I
    display the event date and title on the main page. I have the
    onclick set to call a javascript function that exposes the details
    using the spry slide effect. It works ok except in IE6.
    The following creates my dataset from a method call to a
    Coldfusion component that returns the XML I need:
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML",
    "events/event",{distinctOnLoad:false});
    </script>
    The following function slides open the detail:
    <script type="text/javascript">
    function startBlind(rid) {
    var contentdiv = document.getElementById('panel'+ rid
    +'Content');
    var panel_height = contentdiv.clientHeight;
    if (panel_height<100){
    var bd = new Spry.Effect.Blind('panel'+ rid +'Content',
    {duration: 800, to: '100px', toggle: true});
    else {
    var bd = new Spry.Effect.Blind('panel'+ rid +'Content',
    {duration: 800, to: '0px', toggle: true});
    bd.start();
    </script>
    Within the repeat I have:
    <div class="EventPanelLabel"
    onclick="startBlind({ds_RowID});">{startDate} &mdash;
    {title}</div>
    I think the XML looks OK but for some reason when the page
    loads, IE6 returns:
    Exception caught while loading
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML:
    [object Error]
    The page seems to work fine in Safari and Firefox on the Mac
    and IE7 as well as Firefox on Windows. Just IE6 seems to be having
    the problem. Could you please take a look at
    http://tornadoyouthhockey.org
    and provide any suggestions you may have?
    Also, is there a way to hide the {startDate} - {title} I'm
    seeing while the page loads?
    Thanks,
    Kevin

    Kin:
    Thanks for your reply. I made the changes you suggested but,
    unfortunately, IE6 is still giving me the same error when the page
    loads:
    Exception caught while loading
    http://tornadoyouthhockey.org/Events.cfc?method=EventXML:
    [object Error]
    Could this be part of the problem an need to be changed as
    well? :
    <div id="panel{ds_RowID}Content"
    Any other ideas? The page is live if you'd care to look...
    http://tornadoyouthhockey.org
    Kevin

  • Help with Spry Rating Widget within a Spry Repeating Region

    My link  http://www.youthinkyougotitbad.com
    This is a long question, but it seems to me if answered somewhere it could help alot of people in the spry community creating comment boards as it uses three important spry widgets: rating, repeating, and tabbed panels. I am trying to use spry rating widget within a spry repeating region within a spry tabbed panel with xml. I was trying to go with the pulse light script (http://forums.adobe.com/message/3831721#3831721) but Gramps told me about the spry rating widget. But I have ran into a couple more problems. First, I couldnt find that much information on the forums or online about how to do the php page with the spry rating widget. None of these have any information on how to do it:
    http://labs.adobe.com/technologies/spry/articles/rating_overview/index .html
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/rating. html
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.ht ml
    And it seems that the official examples are so poor (or I am just ignorant, which def could be a possiblity) it shows
    to set the initial rating value from the server, but uses a static value of 4
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.html
    <span id="initialValue_dynamic" class="ratingContainer">
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>      
             <input id="spryrating1_val" type="text" name="spryrating1" value="4" readonly="readonly" />
             <span class="ratingRatedMsg sample">Thanks for your rating!</span>
    </span>
    <script>
    var initialValue_dynamic = new Spry.Widget.Rating("initialValue_dynamic", {ratingValueElement:'spryrating1_val'});
    </script>
    I finally found a site that has the php and mysql setup.
    http://www.pixelplant.ro/en/articles/article-detail/article/adobe-widgets-for-download.htm l
    But its not perfect. It has the same problem that I ran into with Pulse light, that you had to use php echo within the spry repeating region to set the initial value from the server:
    <span id="spryrating1" class="ratingContainer">
             <span class="ratingButton"></span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="<?php echo $row['average']?>"/>
            </span>
            <script type="text/javascript"
                var rating1 = new Spry.Widget.Rating("spryrating1", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id=spryrating1&val=@@ratingValue@@'});
            </script>
    So instead, I tried with three of my panels (www.youthinkyougotitbad.com) to get the average rating from xml by using the following queries:
    Recent
    Returns the blurts in most recent order along with average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC
    Wet Eyed
    Returns the blurts in highest ratings order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r Desc
    Dry Eyed
    Returns the blurts in lowest rating order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r
    These all return the correct xml in the correct order.And they return the average rating of each blurt which I can send to my page with xml.
    My first question is that I dont know how to configure the query on my fourth panel Empathized & Advised the same way because it already has a Group By for the Comment Id.
    SELECT `Comment`.id_Blurt, COUNT(*) as frequency, Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt, `Comment` WHERE Blurt.Id_blurt = `Comment`.id_Blurt GROUP BY `Comment`.id_Blurt ORDER BY COUNT(*) DESC";
    Not sure if you guys need more information to understand that all, if so just ask.
    So after I get my average value through xml to the first three panels, I set my spry repeating region up like this:
    (Blurt panel)
    <div spry:region="pv1" spry:repeatchildren="pv1">           
               <div class="blurtbox">
                <!--  most recent blurt tab-->
                <h3> "{pv1::Blurt}"</h3>
                <p> Blurted from {pv1::Location} at {pv1::Date}</p>
                <p>Empathize or Advise about {pv1::Name}'s Blurt #<a href="detailblurt.php?blurtid={pv1::Id_blurt}"> {pv1::Id_blurt}</a></a></p>
               <span id="{pv1::Id_blurt}" class="ratingContainer">
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingRatedMsg">Thank You! Your tears have been tallied.</span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="{pv1::average_r}"/>
            </span>
            <script type="text/javascript">
                // overview of available options and their values:
                // http://labs.adobe.com/technologies/spry/articles/rating_overview/index.html
                var rating1 = new Spry.Widget.Rating("{pv1::Id_blurt}", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id={pv1::Id_blurt}&val=@@ratingValue@@'});
            </script>
                 <br/>
               </div>
              </div>
    Ok, it registers the right vote in the database with the right blurt id each time. But I am having two problems so far:
    One, even though {pv1::average_r} returns the correct average through xml, it doesn't show the initial rating value for each of the repeating blurts. It seems to show the first one correct, and then just repeat that same value to the other ones that follow. I just dont understand since it can get the correct server value right after you vote (afterRating:'serverValue), that I can't manipulate spryrating.js in some way that I could just replace 'ratingValue' in ratingValueElement:'ratingValue' with something to give me the initial server value.
    Two: Is even more mysterious to me, if you play around with voting on the site, sometimes you are unable to vote on different blurts. Its weird. It seems like that the javascript is completely off just on those blurts. And sometimes its a whole row, sometimes none. But so far its never a problem on the first tabbed panel (Recent), only on the other three. As far as I know, the coding is exactly the same in each tab's repeating region except for the different xml input.
    And, now on the live server, sometimes the pics of tears used to voting dont show up until you click.
    Any help on those three questions (how to query the fourth panel, how to show the initial server value, and the glitches with voting) would be greatly appreciated!! I looked pretty hard on adobe forums and other sites, and didnt see much on how to really use the spry rating widget with php and xml.
    Thanks!!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Spry:repeat works in Mozilla and not IE 6

    I made this little test in Spry.
    It happens to work in Mozilla but not in Internet Explorer 6
    which is quite weird since I almost copy/pasted from one of the
    included examples (the example worked fine everywhere).
    Can anyone point me in the right direction please?
    Thanks...
    <!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>Club voleibol bargas</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <script language="JavaScript" type="text/javascript"
    src="scripts/spry/xpath.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="scripts/spry/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript">
    var dsNews = new
    Spry.Data.XMLDataSet("scripts/xml_noticias.php", "/allnews/news");
    </script>
    </head>
    <body>
    <div spry:region="dsNews">
    <div spry:repeat="dsNews">{header}</div>
    </div>
    </body>
    </html>
    The XML needed for this looks like this:
    <allnews>
    <news>
    <id>26</id>
    <header>Morbi mauris.</header>
    </news>
    <news>
    <id>23</id>
    <header>Lorem ipsum dolor sit amet</header>
    </news>
    <news>
    <id>8</id>
    <header>Proin convallis. Duis sed est ut ligula
    ullamcorper bibendum.</header>
    </news>
    </allnews>

    I spent days trying to figure it out and the minute I post it
    here the solution comes to me!
    The problem was that the XML file was being generated by a
    PHP script which was not outputting the appropriate headers.
    You can use:
    header('Content-Type: text/xml');
    Or use this other one if your charset is NOT US-ASCII:
    header('Content-Type: application/xml');

  • Help With Spry Repeat Regions

    Hello everyone,
    I've recently started using Spry for a project I've been
    asked to work on and I've run in to a few issues since my spec
    changed on me today. So any help or advice anyone has is very much
    welcome as I'm very much out my comfort zone at the moment.
    Original Spec
    The idea originally was to have a drop down of roles which
    was created from the role tag within a xml file which I was able to
    do as you can see below in the attached code. Once the user had
    picked a role it would then
    ds2.setCurrentRowNumber(this.selectedIndex) and this would trigger
    the spry detail region I have to populate the fields I setup to get
    out of the xml the role, process and info.
    At the time I was told a role would only appear once in the
    file but this is now not the case :(
    My problem / New Spec
    Unfortunately with the xml now having a role more then once
    I've been asked to include a dynamic region which will display the
    process and info fields from other records which have this role
    name. Which is the bit I'm having problems with. I've been playing
    with creating a spry:repeat for each field and then using
    Spry:if="'{Role}'.search(^/myVar/) != -1; but I've had no luck
    getting a value into a variable and I'm lack of experience is
    running out of ideas.
    Hope I've made sense this is my first time using spry and
    JavaScript, so any help is greatly welcome.
    Thanks Nick.
    Example of the XML file - Please note this is very much a cut
    down version.

    tried changing the Region HTML table cell attributes to width:75pct, but this has no effect.Unsurprisingly. Use a valid CSS length specification.

  • Diferent spry:repeat over a accordion widget

    Hello, I am trying to populate a accordion with a xml.
    my xml schema is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
    <canal nom="Últimos vídeos visitados">
    <item id="968">
    <title>Barredora Inalambrica</title>
    <text>Pensando en usted y su comodidad le ofrecemos
    ...</text>
    <video>videos/Hogar-3-BarredoraInalambrica.flv</video>
    <thumb>videos/thumbs/hogar3_thumb.jpg</thumb>
    <img>videos/thumbs/hogar3.jpg</img>
    </item>
    <item id="1000">
    <title>Wonder Max</title>
    <text>Preparar una fantástica comida, nunca
    había sido ...</text>
    <video>videos/Hogar-4-WonderMax.flv</video>
    <thumb>videos/thumbs/hogar4_thumb.jpg</thumb>
    <img>videos/thumbs/hogar4.jpg</img>
    </item>
    <item id="1001">
    <title>Chef-O-Matic</title>
    <text>¿No tienes tiempo para cocinar?
    </text>
    <video>videos/Hogar-5-Chef-O-Matic.flv</video>
    <thumb>videos/thumbs/hogar5_thumb.jpg</thumb>
    <img>videos/thumbs/hogar5.jpg</img>
    </item>
    </canal>
    <canal nom="Viajes">
    <item id="968">
    <title>Barredora Inalambrica</title>
    <text>Pensando en usted y su comodidad le ofrecemos
    ...</text>
    <video>videos/Hogar-3-BarredoraInalambrica.flv</video>
    <thumb>videos/thumbs/hogar3_thumb.jpg</thumb>
    <img>videos/thumbs/hogar3.jpg</img>
    </item>
    <item id="1000">
    my code is:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script src="includes/SpryAccordion.js"
    type="text/javascript"></script>
    <script src="includes/xpath.js"
    type="text/javascript"></script>
    <script src="includes/SpryData.js"
    type="text/javascript"></script>
    <link href="css/SpryAccordion.css" rel="stylesheet"
    type="text/css" />
    </head>
    <body>
    <div spry:region="channels items">
    <div class="Accordion" id="sampleAccordion"
    tabindex="0">
    <div class="AccordionPanel" spry:repeat="channels">
    <div class="AccordionPanelTab" >{@nom}</div>
    <div class="AccordionPanelContent">
    <div spry:repeat="items">
    <li>{title}</li>
    <li>{text}</li>
    </div>
    </div>
    </div>
    </div>
    <script language="JavaScript" type="text/javascript">
    var channels = new Spry.Data.XMLDataSet("data/channels.xml",
    "root/canal", {distinctOnLoad: true});
    var items = new Spry.Data.XMLDataSet("data/channels.xml",
    "root/canal/item", {distinctOnLoad: true});
    var sampleAccordion = new
    Spry.Widget.Accordion("sampleAccordion");
    </script>
    </body>
    </html>
    I don't know how I can insert the item tags inside de
    AccordionTabContent. I want to insert in the AccordionTabContent
    each item tag of each channel, but If I do a repeat over channels
    dataSet I can't extract the item information and If I try to repeat
    over items dataset, I can't extract the canal tag information to
    make the AccordionPanelTab.
    Do you know how can I do it?
    Thanks in advance

    I solve this problem today,,..is very vell documented...
    When you repeat acordion or tab or other wiget, you need have
    in repeat div also constructor of that object..
    Try this code...look at last div..
    change your include paths.
    my work code :
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>test</title>
    <script src="SpryAssets/SpryAccordion.js"
    type="text/javascript"></script>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var channels = new Spry.Data.XMLDataSet("xml.xml",
    "root/canal", {distinctOnLoad: true});
    var items = new Spry.Data.XMLDataSet("xml.xml",
    "root/canal/item", {distinctOnLoad: true});
    </script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet"
    type="text/css" />
    </head>
    <body>
    <div spry:region="channels items">
    <div class="Accordion" id="sampleAccordion"
    tabindex="0">
    <div class="AccordionPanel" spry:repeat="channels">
    <div
    class="AccordionPanelTab">{channels::@nom}</div>
    <div class="AccordionPanelContent">
    <div spry:repeat="items">
    <li>{items::title}</li>
    <li>{items::text}</li>
    </div>
    </div>
    </div>
    </div>
    <script language="JavaScript" type="text/javascript">
    var sampleAccordion = new
    Spry.Widget.Accordion("sampleAccordion");
    </script>
    </div>
    </body>
    </html>
    My xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
    <canal nom="Últimos vídeos visitados">
    <item id="968">
    <title>Barredora Inalambrica</title>
    <text>Pensando en usted y su comodidad le ofrecemos
    ...</text>
    <video>videos/Hogar-3-BarredoraInalambrica.flv</video>
    <thumb>videos/thumbs/hogar3_thumb.jpg</thumb>
    <img>videos/thumbs/hogar3.jpg</img>
    </item>
    <item id="1000">
    <title>Wonder Max</title>
    <text>Preparar una fantástica comida, nunca
    había sido ...</text>
    <video>videos/Hogar-4-WonderMax.flv</video>
    <thumb>videos/thumbs/hogar4_thumb.jpg</thumb>
    <img>videos/thumbs/hogar4.jpg</img>
    </item>
    <item id="1001">
    <title>Chef-O-Matic</title>
    <text>¿No tienes tiempo para cocinar?
    </text>
    <video>videos/Hogar-5-Chef-O-Matic.flv</video>
    <thumb>videos/thumbs/hogar5_thumb.jpg</thumb>
    <img>videos/thumbs/hogar5.jpg</img>
    </item>
    </canal>
    <canal nom="Viajes">
    <item id="968">
    <title>Barredora Inalambrica</title>
    <text>Pensando en usted y su comodidad le ofrecemos
    ...</text>
    <video>videos/Hogar-3-BarredoraInalambrica.flv</video>
    <thumb>videos/thumbs/hogar3_thumb.jpg</thumb>
    <img>videos/thumbs/hogar3.jpg</img>
    </item>
    </canal>
    </root>
    Dont remember repeat constructor using last </div> :)
    bye
    Spry V.1.6

Maybe you are looking for

  • Restore help needed please.

    I need help. I got a new iPhone today and I went to iTunes, pressed restore, because I didn't know what else to do. And now because it was logged in under my boyfriends apple ID my iPhone is my boyfriends iPhone too. How do I turn it back to mine!? I

  • Tax error

    Hi Guys, I need help on resolving this issue. We are posting a vendor downpayment using F-48. We are then doing a vendor invoice and subsequently clearing the open items using F-58. But we are getting the following error while posting "Deferred Tax :

  • How can I change over hardware registered with one apple ID to a different ID

    I seem to have created a number of Apple Ids over the years. Is it possible to have all my hardware registered to the one ID?

  • Warning Unresponsive script on Resume from Hibernation Kubuntu 10.04

    Frequently I put my computer into hibernation so I can view webpages without an internet connection. I will put my computer into hibernation, then disconnect it and sometime later resume the computer. What I find is that every time I resume the compu

  • Audio CD stuck in SuperDrive - Startup will not complete - Can't eject CD

    Disclaimer: I'm troubleshooting this problem for my sister long distance. She has my old iMac 17" Flat Panel G4 with Tiger loaded, SuperDrive, all that. She was loading music to iTunes and put in a homemade audio CD which caused the system to freeze.