Can you tell me where my logic is going astray?

1. detail region displays fine
2. master region accordion tab displays fine
3. accordion content fails to resolve image src correctly. It ignores reference to first dataset--portfolios.xml
thanks for your help...
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
Spry.Data.Region.debug = true;
var dsportfolios = new Spry.Data.XMLDataSet("images/portfolios.xml", "portfolios/portfolio");
var dspaintings = new Spry.Data.XMLDataSet("{dsportfolios::@pathname}{dsportfolios::@filename}", "paintings/painting");
var observer = { onPostUpdate: function(notifier, data) {var a1 = new Spry.Widget.Accordion("Accordion1"); } };
Spry.Data.Region.addObserver("sidebarRegion", observer);
//-->
</script>
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
</head>
<body class="twoColFixLtHdr">
<div id="container">
  <div id="header">
    <h1>Daniel McInnis</h1>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="#">home</a>        </li>
      <li><a href="#">statement</a></li>
      <li><a href="#">bio</a>        </li>
      <li><a href="#">contact</a></li>
    </ul>
  <!-- end #header --></div>
  <div id="sidebar1">
  <div id="sidebarRegion"  spry:region="dsportfolios dspaintings" >
      <div id="Accordion1" class="Accordion" tabindex="0">
        <div spry:repeat="dsportfolios" class="AccordionPanel">
          <div class="AccordionPanelTab">{dsportfolios::@heading}</div>
              <div  class="AccordionPanelContent"><img src="{dsportfolios::@pathname}{dspaintings::@humbpath}" height="{dspaintings::@thumbheight}"
                   spry:repeat="dspaintings" spry:setrow="dspaintings"/>
              </div>
        </div>
      </div>
   </div>
  </div>   <!-- end #sidebar1 -->
  <div id="mainContent">
        <div spry:detailregion= "dsportfolios dspaintings">
             <img src="{dsportfolios::@pathname}{dspaintings::@path}" height="{dspaintings::@height}" width="{dspaintings::@width}" />        </div>
       <!-- end #mainContent -->
  </div>
  <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p>Footer</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>

Hi Macka,
I know I am aged, but calling me Mr Pleysier really rubs it in.
As far as your logic going astray? Please have a look at the following where I have moved the constructor up one level.
<div id="sidebar1">
  <div id="sidebarRegion"  spry:region="dsportfolios dspaintings" >
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel" spry:repeat="dsportfolios" spry:setrow="dsportfolios">
        <div class="AccordionPanelTab"><h3>{dsportfolios::@heading}</h3></div>
        <div  class="AccordionPanelContent"><img src= "{dsportfolios::@pathname}{dspaintings::@thumbpath}" height="{dspaintings::@thumbheight}" width="{dspaintings::@thumbwidth}"
          spry:repeat="dspaintings" spry:setrow="dspaintings"/>
        </div>
      </div>
<script>
var a1 = new Spry.Widget.Accordion("Accordion1");
</script>
      </div>
  </div>
</div>   <!-- end #sidebar1 -->
I hope this helps.
Ben

Similar Messages

  • HT204266 Article isn't correct anymore, can you tell me where to find Nano G5 games on the Apple store now?  Please send me a link?

    Article isn't correct anymore, can you tell me where to find Nano G5 games on the Apple store now?  Please send me a link?

    Try posting in the iPod Nano forum. You posted in the iPod touch forum.

  • I can't find the Preferences option in the help menu on Photoshop.  Can you tell me where it is?

    My problem is that I can't find the Preferences option in the help menu on Photoshop.  Can you tell me where it is?

    For Windows, it's under the Edit menu or Ctrl k.

  • I just bought a new IMAC. All my itunes was backed up on my ext hardrive. The data migrated over but I cannot find it. Can you tell me where it is

    I just bought a new IMAC. All my itunes was backed up on my ext hardrive. The data migrated over but I cannot find it. Can you tell me where it is

    Fortuny wrote:
    Have a read here How do I set up a new Mac from an old one, its backups, or a PC? about cdertain culprits.
    Hi!
    Just for future reference, I've moved my site to http://pondini.org, since Apple is dropping web hosting in June.
    Both sites are active now;  after a few days, I'll put redirect notices on the old one, then leave it there until it goes "poof."

  • HT4993 I'm trying to install the "RSA SecurID" application on my new iPhone 5s, but I need the device id. Can you tell me where to find the device Id?

    I'm trying to install the "RSA SecurID" app on my new iPhone 5s, but I need the device id. Can you tell me where to find the device id?

    -> http://www.emc.com/security/rsa-securid/rsa-securid-software-authenticators/ipho ne-and-ipad.htm

  • Can you tell me where I can find the exercise files for Dreamweaver

    can you tell me where I find the exercise files for Dreamweaver

    Creating your first web site in DW CC -  5-part tutorial.  Click on the blue GET FILES button to download the ZIP folder.
    https://helpx.adobe.com/dreamweaver/learn/tutorials/how-to/first-website-part1.html
    Nancy O.

  • Hello, Can you tell me where I can found the lens profil for the Canon 500MM F4 Mark II

    Can some one tell me where I could find this lens profile for Lightroom 5.4.
    thanks

    Given the 600mm F4 IS II (February 2011) lens profile hasn't been created yet it may be a while (if ever). I wouldn't worry about it since the lens profile only corrects distortion and vignetting. There is virtually no distortion with either of these lenses and vignetting is within 0.2EV using the 600mm profile, which you can set as the "default" profile. Personally I think people put too much emphasis on the need for "automatic" lens profile correction. All my lens profile defaults are set to Distortion = 0 and Vignetting = 50. I change the setting only when an image appears to need more correction. WHY?
    REASON
    Distortion correction crops part of the image and increases "edge" stretching with wide angle lenses–It's a trade-off for straight lines in the image. IMHO-If it's not visible in the image you don't need it. 100% Vignetting correction setting can look un-natural and amplifies lens aberrations and softness in the corners, which is where vignetting correction is applied the most.
    My 2 cents worth.

  • Can you tell Compressor where to use a higher bitrate?

    I have a 2 hour project, the last twenty minutes of it being "behind the scenes" footage shot on DV.
    This 20 minutes of the program can be lower than the average 5.0Mbps that the 2 hour DVD setting uses.
    And I have several short sections with fast moving multilayer graphics which I would like to have the best quality possible.
    Is there a way to tell Compressor where quality is more important and where it's not?
    I am using Final Cut Studio 2.
    Thanks for your help.

    ...but don't expect even close to the access speeds you would get with a hard drive!  That's fine of course since you should use it for example, as an emergency boot drive, or transporting stuff to and from other locations, or backups for selected stuff.

  • I want to sync my 2nd generation ipod touch a new laptop with the updated version of itunes but i do not want to lose all of my songs on the ipod. i have backed it up but cannot find where all of the backed up data goes. can you tell me where to find it?

    i would like to sync my second generation ipod touch to a new laptop with the recently updated version of itunes. in order to do this, it deletes all the music of the ipod. i would like to be able to save my music as i have spent alot of money purchases it. i have backed up the ipod in order not to loose any of the music but i cannot find where the songs are backed up to? can you please help me find where the songs have been backed up to so i can save them please

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    The iPod backup that iTunes makes does not include synced media like apps and music.

  • Can someone tell me where my code is going wrong

    Hi I am trying to save the information in a jtextfield and then reopen that data at a later date in the same jtextfield. I have put the code in and it runs but when I try to save the jtextfield it does not create a file so when I try to reopen it there is no file to open as none was made, but i can get the save filechooser and open filechooser to open just not do what I want them to.
    Thanks the Lord of the realm.
    * NewJFrame.java
    * Created on 10 November 2007, 20:03
    package javaapplication56;
    import java.awt.Component;
    import java.io.File;
    import javax.swing.JFileChooser;
    * @author  morgan
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
        //Create a file chooser
    final JFileChooser fc = new JFileChooser();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jTextField1 = new javax.swing.JTextField();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            jButton2 = new javax.swing.JButton();
            jButton4 = new javax.swing.JButton();
            jButton1 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            jButton2.setText("calculate");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            jButton4.setText("OPEN");
            jButton4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton4ActionPerformed(evt);
            jButton1.setText("SAVE");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGap(80, 80, 80)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addComponent(jButton1))
                    .addGap(27, 27, 27))
            layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2, jButton4});
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(30, 30, 30)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(54, 54, 54)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(49, 49, 49)
                            .addComponent(jButton2)
                            .addGap(46, 46, 46)
                            .addComponent(jButton4)
                            .addGap(20, 20, 20)
                            .addComponent(jButton1)))
                    .addContainerGap(100, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    JFileChooser jfc = new JFileChooser(new File(jTextField1.getText()));
        if (evt.getSource() == jButton1) {
                int returnVal = jfc.showSaveDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    File file = jfc.getSelectedFile();
        private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
          if (evt.getSource() == jButton4) {
            int returnVal = fc.showOpenDialog(NewJFrame.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file = fc.getSelectedFile();
                //This is where a real application would open the file.
                append("Opening: " + file.getName() + "." + newline);
            } else {
                append("Open command cancelled by user." + newline);
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    float num1, result;
        num1 = Float.parseFloat(jTextField1.getText());
              result = num1;
                     jTextArea1.setText(String.valueOf(result));
        private String newline;
        private Object aComponent;
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        private void append(String string) {
            throw new UnsupportedOperationException("Not yet implemented");
        // Variables declaration - do not modify                    
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton4;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTextArea jTextArea1;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration                  
    }Edited by: Reg_Dwight on Dec 19, 2007 5:10 PM

    Reg_Dwight wrote:
    please can you be more specific I am new at filechoosers and I am unsure of you reply although I am grateful for it though.I can see you are using an IDE. I agree, it looks so easy but the code under an IDE-generated GUI can be so complicated.
    I'm no expert, but I can tell you that I started with java.io.File, java.io.PrintWriter, and java.util.Scanner for simple I/O. It's only now that I am hard-coding GUI components even though I use an IDE.
    My unsolicited advice is to run through those three classes first, preferably as book topics, so that you can get a feel for file I/O.

  • I have created sub-folders under one email address but can't find the sub-folders. Can you tell me where they are please.

    The sub-folders aren't visible but when I created a second sub-folder with the same name, a box appeared advising me that a sub-folder of the same name had been created so could not be called that. Please let me know where I can find it.

    Are you describing "mailboxes" in Apple's Mail app?  That's odd, since this is the forum category for iPods.
    The location of a new mailbox is determined by your Location selection when you created the new mailbox.  In the panel that appears when you give command to create a new mailbox, there is a drop-down selection field for Location.  Click that field.  That is probably where you put your previous mailbox, so if the new one with the same name is duplicated at that location, that's the location you need to look.
    If this question is about iPod (or iTunes), please post back with more details.

  • I have a program that requires a Java plugin version 1.6.0_17 can you tell me where to find it?

    I need this particular version, but have no clue how or where to find it. I am operating under Windows 7 currently. Can someone point me in the right direction?? Thanks in advance1

    You can download Java Plugin Version 1.6.0_17 (as well as many other versions old and new) by visiting 'File Hippo' at this link:
    [[http://preview.tinyurl.com/btg95oh|Java Oracle Plugins]]
    Please keep in mind however that the Firefox Java Plugin has blocked JRE versions below 1.6.0_31 or between 1.7.0 and 1.7.0_2. As of April 2012 some Firefox versions automatically block all Java plugins which are Java versions less than 1.6.0_31, therefore every user that has a problem and is running with a Demantra that supports Java higher than 1.6.0_19 can upgrade their Java plugin to 1.6.1_31. Demantra 7.3.0.2 and all versions of 7.3.1 support it.
    Anyone who has a problem while running on an older Demantra version that does not support Java versions newer than 1.6.0_19 cannot use Firefox with Demantra. Instead they can either use Windows Internet Explorer (IE) without a Java upgrade or they can upgrade their Demantra.
    If they upgrade to the latest Java version then the Demantra plugin will not work - not with Firefox and not with IE.
    If you still need additional help, you can find it at [[My Oracle Support.|My Oracle Support]] Oracle's one-stop online technical support portal offers a wealth of resources for customers.
    '''How to enable Java if it's been blocked'''
    In order to protect you, Firefox has stopped some versions of the Java plugin from running automatically because of security issues. However, you can still use Java on trusted sites if necessary. Find out more by visiting [https://support.mozilla.org/en-US/kb/how-to-enable-java-if-its-been-blocked Mozilla Support] Mozilla Support.

  • Can you tell me where will get the trial version of BW?

    Hi Experts,
    I am new to bw.  i want to install bw in my home?  could you please guide me how to get trail version?
    Thanks in advance for your help.

    Hi Sathya,
    You can install the trial version of BW from the below site
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/b2918eea-0601-0010-6284-e6cb7eee4399 [original link is broken] [original link is broken]
    Hope this helps.
    Note:Assign Pts if it helps.
    -Arun.M.D

  • Can you tell me where the Firefox button at the top of the Firefox window is?

    I am trying to automatically clear my browser history, but I have no idea where the Firefox button is.

    Do you have the menu bar with names like File and Edit visible?
    You get the orange Firefox menu button if the menu bar is hidden.
    *https://support.mozilla.org/kb/how-do-i-get-firefox-button
    *https://support.mozilla.org/kb/Menu+bar+is+missing
    Press the F10 key or tap the Alt key to bring up the "Menu Bar" temporarily if the menu bar is hidden.
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

  • HT1657 I rented a movie and it downloaded on my iPad, but I can't find it. Can you tell me where it is.

    I rented a movie from iTunes. It downloaded on my iPad but I can't find. Can anyone help.

    If you can't find the movie you downloaded on your iPad, iPhone or iPod Touch, check inside your Videos App

Maybe you are looking for