Accordion Spry is defaulting to all tabs open. What's wrong?

Hi,
I had my accordion spry working perfectly a week ago. Then, I tried to add another panel at the top, and all of a sudden all tabs default open. I'd like them to go back to all being closed on default. I've been over my coding again and again for a week and can't figure out what I did wrong. I can get the first panel to close on default by changing the default panel to -1, but that only makes the other panels look odd for being open. Here's my code shortened to the important parts:
<div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
       <div class="AccordionPanelTab">Create Your Own Art Course</div>
        <div class="AccordionPanelContent">
          <p>Wouldn't you love...
(rest of content + 5 more tabs)
</div><script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1});
//-->
</script>
my url is: http://www.7elementsBR.com/courses
Can anyone help me figure this puzzle out? Thank you.

C F McBlob wrote:
There are SEVERAL paragraph tags that are "unclosed". That can throw the whole Spry function off.
No, it can't. The closing tag of a paragraph is optional. The reason it's triggering an error in the W3C validator is because an XHTML doctype is being used. Many of the other "errors" are caused by the JavaScript being read by the validator as though it were HTML.
However, you're right about unclosed tags. The problem with the accordion is being cause by incorrectly nested divs.
This is how the content div should look:
  <div class="content">
    <h1>Courses (Fall 2013) </h1>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
       <div class="AccordionPanelTab">Create Your Own Art Course</div>
        <div class="AccordionPanelContent">
          <p>Wouldn't you love being in a class with your friends/family learning exactly what you like learning and on your schedule? You can customize what materials you use, how often you come, the time you come, studying only abstract or realism, maybe a little bit of everything? Price is determined by your selections.
          <p><a href="customcourse.html">Custom Course Form</a><br />        
        </div>
        </div> <!-- This closing tag is missing -->
        <div class="AccordionPanel">
        <div class="AccordionPanelTab">Basic Art (ages 6 - 12)</div>      
        <div class="AccordionPanelContent">
          <p>Mondays 4:30 - 6pm (No longer accepting Fall registrations.)     </p>
          <p>Students will get to sample these various mediums: pencil, charcoal, soft pastel, oil pastel, printmaking, watercolor, and acrylic painting. We will explore all 7 elements of art in order to create a good foundation for our young artists. Students are welcome to bring papers or canvas to create on, or feel free to visit the <a href="shop.html">shop</a>. All mediums are available for use and are included in the price. Course begins August 12.</p>
          <p>16 sessions, 4 free punch cards, $55/month<br />        
        </div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Drawing (ages 6+)</div>
        <div class="AccordionPanelContent">
        <p>Thursdays 4:30 - 6pm (No longer accepting Fall registrations.)</p>
          <p>Students will learn the 7 elements of art through various drawing tools including: pencil, charcoal, soft pastel, and oil pastel. This is a class based on realism first, and finding your own style as an artist later. Students are welcome to bring papers to draw on, or feel free to visit the shop. All mediums are available for use and are included in the price.  Course begins August 15.</p>
          <p>16 sessions, 4 free punch cards, $55/month<br />
        </p></div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Open Studio </div>
        <div class="AccordionPanelContent">
        <p>Monday - Friday, 12 - 4pm (Call ahead of time @ 225.366.7442)</p>
          <p>This course is all about the artist as an individual. Instruction is not provided, and artists may come and go as pleased. Weekly critiques are Fridays 3 - 4pm and are not mandatory, but allow for feedback from multiple artists and provide answers for you to grow as an artist. Artists may work with any medium, and may choose to rent media for $5/hour. The studio is not open on 1st Fridays, holidays, Easter week,  Halloween week, Thanksgiving week, or Christmas week. </p>
          <p>Pricing: $5/hour or FREE for current students</p></div>
      </div>
            </div> <!-- This closing tag is missing -->
            <script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: 0});
//-->
</script>
    <!-- </div> This closing tag should be removed -->
    <p> </p>
    <p><a href="referafriend.html"><img src="images/refer.gif" alt="refer a friend" width="228" height="64" longdesc="images/refer.gif" align="right" /></a></p>
  </div>
<!-- end .content -->
The unclosed paragraph tags should also be fixed, but what's causing the problem with the accordion is incorrectly nested divs.

Similar Messages

  • My iphone 4s shuts itself off all the time. starts normal and then shut it off and start all over again, what is wrong?

    my iphone 4s shuts itself off all the time. starts normal and then shut it off and start all over again, what is wrong?

    Your iPHone is designed by intention to shut off when there is a reason for the softwarer to believe that danger is immenent to the hardware. This can occurr if the software is running applications that have been corrupted due to all types of different scenarios. My best advice to you would be to restore your device back to default manufactures settings and do NOT restore the current backup of the IOS program currently running.
    If this corrects the problem with your device intermittently restarting you will then know you have had applications there were corrupted on your device. Once you are convinced there are no issues with the hardware of your device you then are free to begin downloading software apps that were earlier on the device.
    Good luck.

  • I used to be able to watch net flux and hulu on my macbook pro not it the sites will not open, what is wrong?

    I used to be able to watch net flux and hulu on my macbook pro not it the sites will not open, what is wrong?

    What happens when you try?
    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
    Safe Mode - Mavericks   also Yosemite
    Safe Mode - About

  • When i turn my ipod on i get purple vertical lines and thats all it does, what is wrong with it?

    When i turn my ipod on i get purple vertical lines and thats all it does, what is wrong with it?

    It may have a bad display screen but you could try resetting to see if that helps.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).

  • Old version showed all tabs open. How do I find them on new version

    The older version of Firefox showed all the URLs open at the same time underneath the favourites toolbar. Annoyingly the new version only shows thje tab for the URL you are actually on. How can I replace the older feature

    It is still possible to have multiple tabs open. By default these may now have moved higher up the screen. There is also the option to use what was the panorama feature now called tabs groups.
    I am using an XP and firefox 4 and later. I still have multiple URLs in separate tabs lined up across the top of the screen, and can have teem above or below the bookmarks (favourites) toolbar. I am not sure what you are doing, maybe you are using tabgroups.
    See
    * [[why are tabs on top?]]
    *[[what are tab groups]]

  • Accordion Spry Widget default loading behaviour

    Am using the accordion spry widget to display some
    spring/summer courses and
    I need all panels closed when the page first loads. I've
    tried to find the
    relevant code, but have not been successful in changing it to
    make this
    work. If I change the behaviour of the 'this.defaultPanel'
    the whole
    accordion stops working. How can I change the accordion
    behaviour to have
    all panels closed at page load?
    Thanks for any help.
    Marianne

    Hello! I have been reading up on this and playing around with
    the code for a few hours now and I can't seem to make it work.
    Basically I would like to have the accordion load collapsed, and
    get rid of the fixed height. Any clue what I'm missing?
    Thanks!
    Hello! I have been reading up on this and playing around with
    the code for a few hours now and I can't seem to make it work.
    Basically I would like to have the accordion load collapsed, and
    get rid of the fixed height. Any clue what I'm missing?
    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">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Lorem Ipsum : about us</title>
    <style type="text/css">
    <!--
    -->
    </style>
    <script src="SpryAssets/SpryAccordion.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    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
    .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="css/main.css" rel="stylesheet" type="text/css"
    />
    <style type="text/css">
    <!--
    -->
    </style>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet"
    type="text/css" />
    <style type="text/css">
    <!--
    a:link {
    color: #036;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    color: #036;
    a:hover {
    text-decoration: none;
    color: #FFF;
    a:active {
    text-decoration: none;
    color: #036;
    -->
    </style></head>
    <body
    onload="MM_preloadImages('images/menu_images/nav_a2_f2.jpg','images/menu_images/nav_a3_f2 .jpg','images/menu_images/nav_a4_f2.jpg','images/menu_images/nav_a5_f2.jpg','images/menu_i mages/nav_a6_f2.jpg')">
    <div id="homebg">
    <div id="spry1">
    <div id="Accordion2" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab"><img
    src="images/spry_background/about_spry1.jpg" width="747"
    height="35" alt="Vision / Purpose / Mission" /></div>
    <div class="AccordionPanelContent">
    <table width="744" height="179" border="0">
    <tr>
    <td width="95" height="175"> </td>
    <td width="581" valign="top"
    bgcolor="#C2CAD2"><p><strong>Vision:</strong>
    Lorem Ipsum Dolor</p>
    <p><strong>Purpose:</strong> Lorem ipsum
    dolor.</p></td>
    <td width="54"> </td>
    </tr>
    </table>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab"><img
    src="images/spry_background/about_spry2.jpg" width="746"
    height="34" alt="Guiding Principles / Core Values"
    /></div>
    <div class="AccordionPanelContent">
    <table width="744" height="388" border="0">
    <tr>
    <td width="95"> </td>
    <td width="581" valign="top"
    bgcolor="#C2CAD2"><p><strong>Integrity</strong><br
    />
    Lorem Ipsum</p>
    <p><strong>Understanding</strong><br
    />
    Lorem Ipsum</p>
    <p> <strong>Innovation</strong><br
    />
    Lorem Ipsum</p>
    <p><strong>Perseverance</strong><br
    />
    Lorem Ipsum</p>
    <p><strong>Simplicity</strong><br />
    Lorem Ipsum</p>
    <p> <strong>Lorem
    Ipsum</strong></p></td>
    <td width="54"> </td>
    </tr>
    </table>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab"><img
    src="images/spry_background/about_spry3.jpg" width="746"
    height="34" alt="Lorem Ipsum" /></div>
    <div class="AccordionPanelContent">
    <table width="744" height="388" border="0">
    <tr>
    <td width="95"> </td>
    <td width="581" valign="top"
    bgcolor="#C2CAD2"><p><strong>Lorem
    Ipsum</strong><br />
    <br />
    <br />
    <a href="mailto:blahblah</a></p>
    <p><strong>Lorem Ipsum</strong><br
    />
    <br />
    <br />
    <a href="mailto:blahblah"</a></p>
    <p><strong></strong><br />
    Manager<br />
    9<br />
    <a href="mailto:blahblah</a></p></td>
    <td width="54"> </td>
    </tr>
    </table>
    </div>
    </div>
    </div>
    <h6></h6>
    </div>
    <div id="text">
    <h1>about us
    <p>Lorem Ipsum </h1>
    <p> </p>
    </div>
    <img src="images/bg_images/bg_interior.jpg" width="1374"
    height="931" /></div>
    <script type="text/javascript">
    <!--
    var Accordion2 = new Spry.Widget.Accordion("Accordion2", {
    useFixedPanelHeights: false, defaultPanel: -1 });
    //-->
    </script>
    </body>
    </html>

  • When I click on the icon for Adobe Illustrator it won't open what is wrong

    When I click on the icon for Adobe Illustrator it won't open what is wrong

    Need some more information. What OS and version,what version of AI? Has it ever worked? What has changed since the last time it worked?

  • Is there a command which updates, at the same time, all tabs open ih Firefox?

    I'd like to update all open tabs in Firefox, without closing them. Is it possible?

    You can right click a tab on the Tab bar: Reload All Tabs

  • Starting mac all tabs open

    All icons in my dock open when i start my i mac, how can i fix this because i dont want that.

    Right click the icon on the dock and select Options > uncheck Open at Login.

  • Why are all tabs opening in HTML?

    when I open tabs or try going to any website there are no pictures and everything is in HTML format...I think....

    Hi Havovie, did Firefox work normally until today?
    Can you associate the change with any changes to your system, such as an update to Firefox, or an add-on, or Windows?
    Could you try Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Can i change the default page new tabs open to?

    It is currently Yahoo when i click new tab but i want it to be Google, advice?

    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

  • Have a tab group with 18 tabs. When all tabs open scrolling through them is very slow. Any thoughts.

    I use the scroll wheel on my mouse. When I scroll with the wheel there is a major lag time and most of the time it scrolls past several tabs.

    You can try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    You need to close and restart Firefox after toggling this setting.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration

  • HT4557 Music More Shared does not appear and the password has been set up properly on all devices. What is wrong with Home Sharing?

    Really I can't believe how pathetic Apple products are at allowing people under the hood of certain settings or giving you some clue to what error messages mean. My password is entered properly on all devices I'm trying to use Home Sharing on, all check boxes are checked yet the iPad still cannot discover what is on the PC's iTunes list. I've tried everything in all of the forums on this site and nothing works, there is no Music>More>Sharing box that pops up. Also there is no Airplay button in my iTunes on my PC. Does anyone have any suggestions?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Downloaded the indesign trial and see it in my applications, but won't open. what is wrong?

    Hello,
    I downloaded the trial version of Indesign and it successfully downloaded and i see it in my applications on my mac. when i click on it, it just doesn't open at all. It looks like it will open then displays the red adobe sign at the bottom of the screen and doesn't open/do anything. Any help is appreciated, needing this for a final project
    Thanks

    You can delete it and go into the Purchased tab in the App Store can click Install, and will not be charged again.

  • Elements 12 Editor will not open, Organizer does open - what is wrong?

    Recently installed PSE 12, Costco Edition, onto Toshiba S50-A laptop with Intel i7, Windows 7 Professional 64 bit, 8GB RAM

    Two suggestions:  the first one is a workaround. You just have to drill down your program file tree to Adobe Photoshop Elements Organizer and find the .exe file - the one specifically for Organizer, not Elements.  Make a shortcut to that file on your desktop and it will open Organizer. The second suggestion resolved the problem altogether for me. I actually called Dell and after working with several different techs over several different days, I talked to a tech in premium support who was excellent. I discovered from them that it is actually a problem with the windows system files. I have 8.1.  I went through a "refresh" on my computer which rebuilt all the files. Then reinstalled Adobe as well as my other programs again and Photoshop Elements Organizer works from the standard desktop shortcut.

Maybe you are looking for