Spry Data Sheet HTML

Currently I am making a site with spry Datasheet (with a
HTML). I have two datasheet that i use. The spry-masterdetail part
contains two sets of rows with thumbs of the datasheet file.
Somewhere on my page I have the spry-detail. If i click on one of
the thumb it shows in de spry-detail the result. This works with
the first of the rows with thumbs. The second row doesn't work.
This is because the first result (when you click on the thumb of
the first row) is on top of second result (when you click on the
thumb of the second row).
These are my codes for the result when clicking on the thumb:
<div spry:detailregion="dsgr dsva"
class="DetailContainer">
<div class="DetailColumn">{Picture}</div>
</div>
As you can see the detailregion contains two datasheets (dsgr
ad dsva). But it can't choose which one to set on top. How do i
deal with this problem. Javascript (I don't know how to do this)?
I've read somewhere to use spry:choose but this isn't very clearly
for me.

Hi,
There is some problem in Spry where in if the loaded content
has any spry:regions or dataset objects, those are not executed as
expected. You need to replace the Spry.Utils.setInnerHTML function
with the following code
Spry.Utils.setInnerHTML = function(ele, str, preventScripts)
if(!ele)
return;
ele = Spry.$(ele);
var scriptExpr =
"<script[^>]*>(.|\s|\n|\r)*?</script>";
ele.innerHTML = str.replace(new RegExp(scriptExpr, "img"),
if (preventScripts)
return;
var matches = str.match(new RegExp(scriptExpr, "img"));
if (matches)
var numMatches = matches.length;
for (var i = 0; i < numMatches; i++)
var s = matches
.replace(/<script[^>]*>[\s\r\n]*(<\!--)?|(-->)?[\s\r\n]*<\/script>/img,
var oScript = document.createElement("script");
oScript.text = s;
ele.appendChild(oScript);
Spry.Data.initRegions(Spry.$(ele));
It should work fine.
-JV

Similar Messages

  • Spry Data in HTML Panel

    I'd like to load a page w/ dynamic data content through an
    HTML Panel. Can it be done?

    Hi,
    There is some problem in Spry where in if the loaded content
    has any spry:regions or dataset objects, those are not executed as
    expected. You need to replace the Spry.Utils.setInnerHTML function
    with the following code
    Spry.Utils.setInnerHTML = function(ele, str, preventScripts)
    if(!ele)
    return;
    ele = Spry.$(ele);
    var scriptExpr =
    "<script[^>]*>(.|\s|\n|\r)*?</script>";
    ele.innerHTML = str.replace(new RegExp(scriptExpr, "img"),
    if (preventScripts)
    return;
    var matches = str.match(new RegExp(scriptExpr, "img"));
    if (matches)
    var numMatches = matches.length;
    for (var i = 0; i < numMatches; i++)
    var s = matches
    .replace(/<script[^>]*>[\s\r\n]*(<\!--)?|(-->)?[\s\r\n]*<\/script>/img,
    var oScript = document.createElement("script");
    oScript.text = s;
    ele.appendChild(oScript);
    Spry.Data.initRegions(Spry.$(ele));
    It should work fine.
    -JV

  • 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

  • Spry.Data.HTML Firefox .vs. IE

    Hi,
    I have a relatively simple page with two HTML table data
    sources.
    ds1 = Flashcontent.html and ds2 = PDFcontent.html and their
    respective tables, FlashDemoContent and PDFDemoContent.
    I'm using a Spry Tab widget that contains two tabs, and Spry
    repeats in each tab to show the content from
    the tables above.
    It all works just great on IE. HOWEVER, on Firefox (2.x and
    3.x), I get the error:
    Spry.Data.HTMLDataSet: 'PDFDemoContent' is not a valid
    element ID.
    Data shows up on the first tab (FlashContent) but not on the
    2nd tab.
    Any thoughts? I'd be happy to share the code if need be.
    thanks for any pointers.
    mike

    Hi,
    Thanks for replying. I really appreciate it. Unfortunately, I
    don't have a URL handy that I can publish to. (Behind the corp
    firewall with no access to my home server)
    However, I think I might have figured it out. When
    referencing the column names (ie: {FullName}, {Directory}), if you
    are using the same name more than once, you should reference as
    follows:
    {ds1::FullName}
    {ds2::FullName}
    etc...
    Once I clarified that, it worked well in both IE7 and Firefox
    (3.0).
    I dare say, this has been enjoyable! Thanks again for
    replying. I'd appreciate if someone could verify my findings.
    mike

  • Need to control page view to 20 from an html data source for a spry data repeating region

    </style>
    <script src="SpryAssetPan/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssetPan/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="SpryAssetPan/SpryPagedView.js" type=”text/javascript”></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("wrapAround_master2.html", "wrap2", {distinctOnLoad: true, sortOnLoad: "Item", sortOrderOnLoad: "ascending"});
    var pv1 = new Spry.Data.PagedView( ds1 ,{pageSize: 20 });
    //-->
    </script>
    </head
    <body>
    <div id="wrapper">
      <div spry:region="ds1">
        <div id="repeatOne" spry:repeat="ds1">
          <p>{Photo_2}<br />
          {Item}</p>
        </div>
    Here you can find the file that I need to Create Paged View data set navigation
    http://www.hohmangraphics.com/masterProductGuide/WrapAround_art/joestest_2.html

    Thank you,
    With some adjustments it worked, see source code below,
    <script src="SpryAssetPan/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssetPan/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript" src="SpryAssetPan/SpryPagedView.js"></script>
    <script language="JavaScript" type="text/javascript">
    var ds1 = new Spry.Data.HTMLDataSet("wrapAround_master2.html", "wrap2", {distinctOnLoad: true, sortOnLoad: "Item", sortOrderOnLoad: "ascending"});
    var pv1 = new Spry.Data.PagedView( ds1 ,{pageSize: 10});
    //-->
    </script>
    </head>
    <body>
    <div id="wrapper">
    <p>
      <input type="button" value="First" onclick="pv1.firstPage();" />
      <input type="button" value="Prev" onclick="pv1.previousPage();" />
      <input type="button" value="Next" onclick="pv1.nextPage();" />
      <input type="button" value="Last" onclick="pv1.lastPage();" />
      <br />
    </p>
    <div spry:region="pv1 ds1">
        <div id="repeatOne" spry:repeat="pv1">
          <p>{Photo_2}<br />
          {Item}</p>
        </div>

  • 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

  • Spry data sets and column width

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

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

  • Problem with tooltips and spry data using startLoadInterval

    I am trying to use tooltips with a dynamic table using the spry data example at the bottom of the page:
    http://labs.adobe.com/technologies/spry/articles/tooltip_overview/index.html
    I have it working except that it appears to have a memory leak as firefox's memory usage continues to grow.
    I did notice there is a 'new' inside the onPostUpdate:function that is being called on every table update.
    So after looking at the tooltip code I modified the function to:
    <script type="text/javascript">
    var tt1;
    var observer = {onPostUpdate:function(){if(tt1 == null){tt1 = new Spry.Widget.Tooltip('tooltip','.trigger');}else{tt1.destroy(); tt1.destroy();if(tt1.checkDestroyed()) alert("destroyed");else alert("not destroyed");delete tt1; tt1 = new Spry.Widget.Tooltip('tooltip','.trigger');}}}
    Spry.Data.Region.addObserver('mainRegion', observer);
    </script>
    The tt1.checkDestroyed() always returns false and my memory usage continues to grow.
    Any help?

    Thanks for the reply.  I found a way to get it to work by changing my
    observer function to the following:
    else{tt1.destroy();
    tt1.init('.trigger', 'tooltip',
    {});tt1.attachBehaviors();Spry.Widget.Tooltip.loadQueue.push(tt1);}}
    Probably not very clean but it doesn’t grow memory and works correctly.
    I just put it back to the old way as in the example with a
    startLoadInterval(1500) :
    And I am over 500MB after ~ 30 minutes where as the top code above ran with
    a startLoadInterval(1500); overnight and is about ~120MB.
    I am using a double repeatchildren loop to build a table with tooltips for
    each cell which may affect it.
    Bottom line is I have a way to make it work so I am moving forward.  If you
    still want to see it I might be able to get it up on the internet and give
    you a link.
    Thanks,
    Greg Wirth

  • A working YUI Calendar With Spry Data

    Hi,
    I've seen a number of posts about linking Spry data with the YUI calendar widget.
    Well I've done that here.  http://www.pwhitehurst.f2s.com/yui%20calendar.html. through a little perserverance and reading the Yahoo calendar API
    The calendar dates are highlighted based on the event dates in the SPRY data.  I haven't added any other functionality yet as  I'm just taking it one step at a time.  But this page should give others the base code for getting started.  The key is to declare a YAHOO namespace so you can reference the calendar in your spry region postload notifications or other spry functions etc.
    Any questions please reply and I'll see if I've worked it out.  I'm away over Easter but intend to add functionaility so that when you click a date on the calendar it filters the spry data via a non destructive filter etc. I also want the calendar to move to the right month as I click events.
    Cheers
    Phil

    Thanks,
    Unfortunatley my page hasn't gone live yet, so I can't show you what I mean, but I think I've found the problem.
    I've managed to config the YUI calendar to accept dates in DD/MM/YYYY format (using some of the localisation features described on the Yahoo developers pages: http://developer.yahoo.com/yui/examples/calendar/germany.html) so now my calendar will accept and properly shade any date passed to it in DD/MM/YYYY format (which is what my spry dataset is in) and it will also return any date selected from the calendar in DD/MM/YYYY format, as it should. So, all good on the calendar front...
    ...but spry is still operating in standard MM/DD/YYYY mode, so if I set my "start_date" and "end_date" columns as type = "date" (which I want to do for sorting purposes) it doesn't recognise any date after the 12th day of the month! (because it still thinks the DD segment is a MM segment and so has a maximum poss value of 12! doh!). So far I've got around this by defining both date columns as "strings", so the combining function you describe above (much appreciated btw :-)) passes the date string to the calendar exactly as entered, and because my calendar is set up to recognise this date string, theres no problem, and i can shade any date in the calendar (including the 13th to the 31st!)
    so the only problem i have now is being able to sort my dates. one solution seems to be to have 2 columns - one with the date in DD/MM/YYYY format which is used for display (as it is now) and another in american MM/DD/YYYY format which is used to sort, but this seems to me a bit of a waste of time, and theres always the possibility that one column will have an error in it, especially since I'm not used to working in the american format.
    sorry, a bit of a ramble there. I suppose my question is this: is there a simple step i'm missing where I can tell spry that my date columns are in a specific format? ie. dd/mm, not mm/dd?
    something like:
    var ds1 = new.Spry.Data.HTMLDataSet("myData.html", "table1", {sortOnLoad: "start_date", sortOrderOnLoad: "ascending"});
    ds1.setColumnType("start_date", "date", {format:dd/mm/yyyy});
    if not, there really should be!
    *any admins reading, mental note for the next release please...! :-)*
    I suppose i could give in and convert all my dates to the american system which would solve all the problems, but i never like being bullied by the Yanks!

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

  • Breaking down Spry Data Repeat

    Hi,
    I'm trying to create a spry data set  in a table from a XML data file. I have done that in below are the  codings I obtained from Spry tool.
    <div  spry:region="KomtarETA">
      <table>
        <tr  class="TableHeader">
          <td width="100">Route</td>
           <td width="1266">Current</td>
          <td  width="1366">Destination</td>
          <td  width="1266">Next</td>
          <td  width="100">Lane</td>
        </tr>
        <tr  class="TableContent" spry:repeat="KomtarETA">
           <td>{route}</td>
          <td>{desitnation</td>
           <td>{current}</td>
          <td>{next}</td>
           <td>>{lane}</td>
    I have some individual  codings need to be done on each individual  data field. I need to  seperate all the spry data into each individual  column.
    My question  is how I can control these data individually when it's in the table ? Is  there any codings changes need to be done ?
    Please advise.
    Thanks.

    Hi,
    Actually what I mean by breaking down the data and not by means of filtering.
    I still want to display every single data but I wan it to be individualised.
    Here's the link to the test site.
    http://www.pcsb.my/test/KomtarETA.html
    What I need is that some column will be static and some will be dynamic. The actual external XML data will be dynamic as there will be a live server feeding and overwritting it.
    If you look at the Spry table portion coding inside the HTML file, it's actually a Spry repeat and I don't have much control over each individual data I want to manipulate the codings.
    Please take a look at it.
    Thanks.

  • Individual Spry Data Repeat

    Hi,
    I'm trying to create a spry data set in a table from a XML data file. I have done that in below are the codings I obtained from Spry tool.
    <div spry:region="KomtarETA">
      <table>
        <tr class="TableHeader">
          <td width="100">Route</td>
          <td width="1266">Current</td>
          <td width="1366">Destination</td>
          <td width="1266">Next</td>
          <td width="100">Lane</td>
        </tr>
        <tr class="TableContent" spry:repeat="KomtarETA">
          <td>{route}</td>
          <td>{desitnation</td>
          <td>{current}</td>
          <td>{next}</td>
          <td>>{lane}</td>
    I have some individual codings need to be done on each individual  data field. I need to seperate all the spry data into each individual  column.
    My question is how I can control these data individually when it's in the table ? Is there any codings changes need to be done ?
    Please advise.
    Thanks.

    Hi,
    Actually what I mean by breaking down the data and not by means of filtering.
    I still want to display every single data but I wan it to be individualised.
    Here's the link to the test site.
    http://www.pcsb.my/test/KomtarETA.html
    What I need is that some column will be static and some will be dynamic. The actual external XML data will be dynamic as there will be a live server feeding and overwritting it.
    If you look at the Spry table portion coding inside the HTML file, it's actually a Spry repeat and I don't have much control over each individual data I want to manipulate the codings.
    Please take a look at it.
    Thanks.

  • How to link within a spry data set?

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

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

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

Maybe you are looking for