Spry Accordion problem using URLutilis

Hi, I'm using a spry accordion and have the 3rd panel opening as default.
I'm now trying to use URLutilis to open a specific accordion panel from another html page,
but as soon as I amend the target page code, all the panels of my accordion default to open.
This is the code I'm using in the head:
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script type="text/javascript">
var params = Spry.Utils.getLocationParamsAsObject();
</script>
This is the code I'm using in the body:
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {defaultPanel: params.panel ? params.panel: 1});
I still have SpryAccordion.js set as:
this.defaultPanel = 2;
Could someone let me know where I'm going wrong and why all panels are now open?
Cheers,
Andy

Since the answer to your question requires some knowledge of Spry, you might want to post it in the Spry forum. Be prepared to post a URL to the problem page, if asked.
Mark A. Boyd
Keep-On-Learnin' :-)

Similar Messages

  • Spry Accordion Problem in IE7

    Hi,
    I have created a Spry Accordion containing 7 sections, using CS4. It works perfectly in Firefox, however there is a strange bug in IE7. The top section requires the scrollbar and this is working ok. However, the other 6 sections all have the same problem (btw, none of these other 6 are needing the scrollbar as the text does not fill the content area) - the bottom line of text in each of the 6 other accordion sections is not displayed. All the other text in the 6 sections is ok (other than the fact that the top margin is non-existent - I assume that can be fixed fairly easily)
    Has anyone else had this problem, and are there any know fixes?
    many thanks for any help offered

    Since the answer to your question requires some knowledge of Spry, you might want to post it in the Spry forum. Be prepared to post a URL to the problem page, if asked.
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • Spry Accordion problem in IE8

    Hi to all
    I created a menu item list using the spry accordion for the left menu on a website. The spry works perfectly when I'm testing the site locally, but when I load the site directly to the ftp server and test it on the web, the spry accordion wont work at all. There´s no animation, the tabs that have content only shows scrolling bars. I added the .css and .js styles to the site but is not working.
    You can view the site here. It´s the left menu.
    Thanks in advance...

    Hi, it looks like there is a problem with the javascript at the bottom of your page.  There is an error with the line "swfobject.registerObject("FlashID");" (line 226).  And that is keeping your accordion declaration from happening.  If you fix the error (which is 'swfobject is not defined') the panel should work properly.  Quick fix is to move the accordion declaration statement above the statement causing the error.  Hope this helps.
    Dan

  • Spry Accordion Problem in Internet Explorer

    Hi,
    i have created a spry accordion menu in Dreamweaver CS3. My
    problem is that when I click in Internet Explorer, small selection
    handles appear all round the accordion object. This looks quite
    poor then. Any ideas how I can get rid of these?
    Thanks.

    Except for the fact that Spry Accordions are involved, the problem is hardly Spry related.
    Having said that, I will try to help you on your way to solving your problem.
    The following is a list of my observations
    the <div id="wrapper"> on line 74 does not have an ending tag
    <div class="right-column" has 35px padding on the right but not on the left. Because IE interprets the so-called box model differntly to other browsers, and because the div is floated right, the left edge of the div will be pushed further to the left than on other browsers. It may be an idea to put at least some of the padding on the left to keep it clear of the divider line
    the field set in your contact form is 460px wide, the div surrounding it is only 440px and again IE reacts differntly to other browsers in that it expands the parent to suit the child. Try reducing the width of the fieldset to say 400px.

  • I have a spry accordion problem with IE.

    When I scrol down and open a panel in my spry accordion something decides to go to the first panel.
    After that I have to scroll down to the opened panel.
    I want to see the opened panel at once when I opened it and not go to the top of my page first.
    This is no problem in ff, safari and chrome. That works fine.
    Any one knows this problem and how do I solve it?
    Thanks.
    http://www.zeelandseaport.nl

    those here
    http://labs.adobe.com/technologies/spry/

  • Spry accordion problem with IE

    I tried to make a site using all different spry-widgets, so I
    made tabbed panels and in them accordion panels (and in other
    panels other spry-things). It works well in FF but in IE the
    accordionpanels stay all open.
    Can someone help me out.
    Many thanks

    those here
    http://labs.adobe.com/technologies/spry/

  • Spry accordion problem

    I have rebuilt my PC, and I have got a website that has had an accordion for years and it has worked fine until doing my PC rebuild... the accordion doesn't collapse anymore. It stays open, however this only happens locally; the live site still works fine, so I can't even show it to you. What has gone wrong for me locallly?
    Thanks
    Mat

    I have tried that. The funny thing is there is a sister site that has pretty much the same javascript and css apart from colours and that works fine both on the live site AND locally.
    Is the default spry framework in CS4 the most recent? I recall that when CS3 came out, I had to update that because accordions didn't close fully, and that was addressed in the update. However, that shouldn't have any bearing on an accordion which is already created as the code for was written years ago.

  • Spry Accordion Problems

    Hi.
    I would like to ensure that menus stay open while the visitor
    is browsing sub menu items
    Please visit my site to see what I mean:
    jeffcooperdesign.co.uk/devonsailingtemp
    Click on Adventure Sailing, the menu opens, then click on
    Around Britain. You are taken to the page but the menu has reverted
    to its closed state. I would like the Adventure Sailing menu to
    stay open all the while the user is browsing its submenus.
    Thanks

    Then what you need it's collapsible panel. Have a look:
    http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/CollapsiblePanelGroupSamp le.html
    Thogh you'll need to upgrade your spry version to 1.6.1. Here
    is the
    link to do it:
    http://labs.adobe.com/technologies/spry/home.html
    Jeff R Cooper wrote:
    > Hi.
    >
    > I would like to ensure that menus stay open while the
    visitor is browsing sub
    > menu items
    >
    > Please visit my site to see what I mean:
    > jeffcooperdesign.co.uk/devonsailingtemp
    >
    > Click on Adventure Sailing, the menu opens, then click
    on Around Britain. You
    > are taken to the page but the menu has reverted to its
    closed state. I would
    > like the Adventure Sailing menu to stay open all the
    while the user is browsing
    > its submenus.
    >
    > Thanks
    >
    >
    >
    >

  • Spry: Accordion does not close properly

    Hi Everyone,
      I am very new to web design, so bear with me please.
    I created a new website using Dreamweaver and added a spry accordion to use as a menu.  it seemed to be working fine, but as I was adding links into the boxes it quit working on me.  I have thoughts of restarting, but I thought that you may be able to help me here as well.  The link to the website is  http://www.blakesprairiefair.com/2009.html
    I used images for the tab titles and they should all be uploaded, I shoud haver 5 tabs in the accordion but it only shows one   I am attaching how it looked a few keystrokes ago. I can't figure out why it is acting so oddly
    If you need more from me let me know,
    Thank you so much for any help
    Chuck

    Hey,  Thanks for the tip.  I looked through the code like 5 times and I can't seem to find any unclosed or extra Divs  I attached the code below in case that helps.
    I got the code for the defaultPanel: -1 from http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WS0E55F588-24EC-4dd3-9508-82132 4E7F133.html
    - Still haven't found the error
    Thanks
    Chuck
    <!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>Untitled Document</title>
    <link href="_css/NewWebpage.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #apDiv1 {
        position:absolute;
        width:200px;
        height:115px;
        z-index:1;
    #apDiv2 {
        position:absolute;
        width:200px;
        height:115px;
        z-index:1;
    -->
    </style>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="oneColElsCtr">
    <div id="container">
    <div id="mainContent">
      <div id="UpperLeftSpacing"></div>
      <div id="UpperRightTitle"></div>
      <div id="LowerLeft4NavBar">
        <div id="NavBar">
          <div id="SmallerNavBar">
            <div id="Accordion1" class="Accordion" tabindex="0">
              <div class="AccordionPanel">
                <div class="AccordionPanelTab"><img src="Pix/T-Home.jpg" width="175" height="22" /></div>
                <div class="AccordionPanelContent"><em><a href="http://www.blakesprairiefair.com">Home</a></em></div>
              </div>
              <div class="AccordionPanel">
                <div class="AccordionPanelTab"><img src="Pix/T-09Events.jpg" width="175" height="22" /></div>
                <div class="AccordionPanelContent">
                <p><em><strong><a href="http://www.blakesprairiefair.com/index_files/ScheduleofEvents.htm">Events Schedule</a></strong></em><a href="http://www.blakesprairiefair.com/index_files/ScheduleofEvents.htm"></a></p>
                  <p><em><strong>Friday Night :</br>
                  <br>     <a href="http://www.blakesprairiefair.com/index_files/DemoDerby.htm">Demo Derby</a></strong></em><em><strong></em></p>
                  <p><em><strong>Saturday:</br>
                    <br>    <a href="http://www.blakesprairiefair.com/index_files/JudgingSchedule.htm">Judging</a></strong></em></br>
                    <br>    <a href="http://www.blakesprairiefair.com/index_files/CombineDemoDerby2009.htm">Combine Derby</a></em></p>
                  <p><em><strong>Sunday:</br>
                    <br>    <a href="http://www.blakesprairiefair.com/index_files/TractorPull.htm">Tractor Pull</a></em></p>
                </div>
              </div>
              <div class="AccordionPanel">
                <div class="AccordionPanelTab"><img src="Pix/T-09Docs.jpg" width="175" height="22" /></div>
                <div class="AccordionPanelContent">
                  <p><em><strong><a href="http://www.blakesprairiefair.com/2009FairBook.pdf">09 Fair Book (pdf)</a></strong></em></p>
                  <p><em><strong><a href="http://www.blakesprairiefair.com/index_files/Page396.htm">09 Documents</a></strong></em><a href="http://www.blakesprairiefair.com/index_files/Page396.htm"></a></p>
                </div>
              </div>
              <div class="AccordionPanel">
                <div class="AccordionPanelTab"><img src="Pix/T-Contact.jpg" width="175" height="22" /></div>
                <div class="AccordionPanelContent"><strong>Content 5</strong></div>
              </div>
              <div class="AccordionPanel">
                <div class="AccordionPanelTab"><img src="Pix/T-Links.jpg" width="175" height="22" /></div>
                <div class="AccordionPanelContent"><strong>Content 6</strong></div>
              </div>
              <div class="AccordionPanel">
                <div class="AccordionPanelTab"><img src="Pix/T-Past.jpg" width="175" height="22" /></div>
                <div class="AccordionPanelContent">
                  <p>2007</p>
                  <p>2008</p>
                </div>
              </div>
    </div>
            <div id="Cover">
              <p align="center"><img src="2009Cover.jpg" width="185" height="302" /></br>
              <br>Cover Designed By:</br>
              <br>Andrea Pagenkopf</br>
              <br>Rolling Rockets 4-H</p>
            </div>
          </div>
        </div>
      </div>
      <div id="MainContentBox">
        <div id="BoxForText">
          <p align="center">Welcome to the new</p>
          <p align="center"><strong>Blake's Prairie Jr. Fair </strong></p>
          <p align="center">Webpage</p>
          <p align="center"> </p>
          <p align="center"><strong><em><u>News:</u></em></strong></p>
          <p align="center"><em>Buttons for 2009 are on sale now! </em></p>
          <p align="center"><em>Visit local businesses or contact your local 4-H Club or FFA </em>Chapter to purchase one today.</p>
          <p align="center"> </p>
          <p align="center"><strong><em><u>Updates:</u></em></strong></p>
          <p align="left"><em>7/10/2009</em> - New Homepage</p>
          <p align="left"><em>5/20/2009</em> - <a href="http://www.blakesprairiefair.com/2009FairBook.pdf">2009 Fair Book</a> Added to Site</p>
        </div>
      </div>
      <div id="BottomBox"></div>
      <!-- end #container -->
    </div>
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false , defaultPanel: -1 });
    //-->
    </script>
    </body>
    </html>

  • Spry Accordion Display Issue

    Hi guys
    I have tried to implement a Spry Accordion function using DW CS3 to allow me to display current and previous news on a website, however I am having issues with getting it to display properly. You can view the page here: http://www.amiante.co.uk/news.html
    When testing the site in various browsers I noticed a glaring issue, underneath the According there is a massive white space, which to me appears to be the space that would be taken up if each panel of the according were to be opened at the same time....
    This issue occurs in Firefox 3.5.3, Safari 4.0.3, Opera 10.0 and Google Chrome 3.0.195. It seems to work faultlessly in IE 8, IE 7 and IE 6.
    The confusing aspect is that if you zoom in (ctrl +) and zoom out (ctrl -) it seems to remove the white spacing.
    If anyone has any idea of what is causing this I would be delighted to hear from you!
    Thanks in advance.
    Mackenzie

    Thank you so very much, I appreciate the quick response. However, I still have one small issue. For some unknown reason the bluestar tab does not show the star. It shows the tab, but no star. I've got it labeled correctly and it's pointing to the correct files, but I get the blue by itself. I know it must be a very simple solution and I must be doing something incorrect.
    the files are under:
    images/accordion/accordion_tabs_bluestar.jpg, and accordion_tabs_redwhite.jpg. The redwhite shows up. This is driving me nuts! I even went back and re-did the image file and saved it again, but all I get is the blue without the star. Can it be that the image is too big and cutting off the star that is to the right of it?
    Thank you so much, I do greatly appreciate your kind help.
    the other one is
    The code was copied and pasted exactly as was suggested. There is no other blue tab file on the server, so I am confused just a bit.
    Thanks again for helping an newbie, I appreciate it.

  • Using Spry Accordion as menu problem

    I am using the Spry Accordion widget as a menu/table of contents in a website and have encountered an issue that needs customization that I cannot seem to find anywhere.
    Here is the link: http://2ndlookgraphics.com/slProfile/index.html
    I have placed the menu in an iframe with links pointing to "parent" which seems to work well.
    My problem is that whenever a link is clicked in any other than the first panel the menu reverts to the opening stance with te first panel open.
    I would like, if possible to have the the panel that is currently being accessed to stay open until another tab is opened.
    If this is not possible it would be best if the first panel were initially closed and if the accordian effect would initiate on hover rather than click.
    I am using a "Fluid Grid" responsive layout but that does not seem to be affecting this issue.
    I would appreciate some advice on this please.

    All panels closed -
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1});
    //-->
    </script>
    More here:
    http://adobe.github.io/Spry/articles/data_api/apis/accordion.html

  • Using an image as label in Spry Accordion Menu

    I was wondering if it was possible to use an image instead of
    text in the spry accordion menu. I have replaced the text that is
    there with a roll-over image link however I'm unable to label it
    since it uses the text as the label and therefore can't set the
    default panel I want opened. Is there a way to do this? Thanks for
    your help.

    Stefaan Lesage wrote:
    Is this possible with Pages 09 ? And can I achieve this ?
    Is it possible to look at the Help or at the Pages User Guide
    In the English one, page 17, we may read:
    • Some graphics, such as watermarks or logos, appear on pages. These objects are called master objects. If you cannot select an object in a template, it’s probably a master object. To learn more, see “Using Master Objects (Repeated Background Images)” on page 60.
    You can drag or place objects on a page, including imported graphics, movies, and sound, or objects that you create within Pages, including text boxes, charts, tables, and shapes.
    You can also insert pages that have been preformatted for the template you’re using. Click Pages or Sections in the toolbar and choose a template page. The new page is added immediately after the page where you placed the insertion point.
    Yvan KOENIG (from FRANCE vendredi 27 février 2009 23:01:32)

  • Colour problem with Spry Accordion

    Hi, I'm trying to create a website with a spry accordion. I've had some trouble with it (as I'm not good at CSS, it's new to me) and I've solved them all except for one: a problem with the colour of the bar when the section is open.
    This is my website: http://s313354774.mialojamiento.es/saibe/design3/Publish/INICI.html
    When the menu is closed everything is ok, but when you open it then the colour changes, making a gradation between the new colour and the original one. I've checked the stylesheet and there the original colour doesn't appear anywhere, so it's wierd to me.
    Does anyone know why is it happenning? If i'ts because something stupid forgive me, as I told you this is quite new to me and I'm trying to learn day by day.
    Sergi

    Segi,
    This one has got me stumped. If I copy your SpryAccordion.css and apply my copy to the document, there is no problem. Have a look here http://pleysier.com.au/sergi/
    I know this will not help except to say, that if you change
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    to
    <link href="http://pleysier.com.au/SpryAccordion.css" rel="stylesheet" type="text/css" />
    see what happens.
    Gramps

  • Spry accordion works in template, but not pages using that template

    So I added a spry accordion to one of my templates and changed the script to default closed. It works great. In the template. But not in any of the pages using that template. Basically I can see the content in the accordion on the page as if there is no accordion at all. And I can see the script and html telling me an accordion should be there. It just isn't. I can see the framework when in edit mode. But in live mode, it's like there's not there but the content.
    I'm using Dreamweaver CS6.
    Any thoughts?
    Thank you for your time!

    If the template has been created properly, then the Spry files should automatically be included in the child page(s).
    My template looks like
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <script src="../SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body>
    <!-- TemplateBeginEditable name="EditRegion3" -->
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <!-- TemplateEndEditable -->
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    </script>
    </body>
    </html>
    My child page looks like
    <!doctype html>
    <html><!-- InstanceBegin template="/Templates/untitled.dwt.php" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta charset="utf-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body>
    <!-- InstanceBeginEditable name="EditRegion3" -->
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <!-- InstanceEndEditable -->
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    </script>
    </body>
    <!-- InstanceEnd --></html>

  • Spry Accordion gains scroll bars in IE7

    Can anyone suggest a fix for a problem I've encountered on a
    spry accordion? The accordion has eight panels, each containing an
    image. Each image has a hot spot linking the image on that
    particular accordion panel to another web page. When I view in
    different browsers, FF and IE6 look fine and work fine. When viewed
    in IE7, each of the panels has scroll bars on the bottom and right
    side, as if the image is too large.
    What is causing the scroll bars to appear only in IE7?
    Thanks!

    Same problem here too. Also, I can't get a Spry horizontal
    menu bar to center within the accordion. As with the extra spacing
    glitch, it looks fine in everything except IE7. Is IE still the
    browser of choice these days? I don't use it, but I do try to get
    things to look correct in it.
    Thanks

Maybe you are looking for