-
1. Re: trying to use some of the variations for accordian
Arnout Kazemier Jan 14, 2010 2:11 AM (in response to k.loy)Have you seen this example: http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#VariablePan elHeights
-
2. Re: trying to use some of the variations for accordian
k.loy Jan 14, 2010 8:47 AM (in response to Arnout Kazemier)yes, that was what I was trying to implement, but it's not working
-
3. Re: trying to use some of the variations for accordian
k.loy Jan 14, 2010 3:52 PM (in response to k.loy)when I insert this code I get an error that says...
---------
This document contains Javascript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
Widget: var acc1 = new Spry.Widget.Accordion("Acc1", { useFixedPanelHeights: false });
-
4. Re: trying to use some of the variations for accordian
janken71 Jan 15, 2010 8:08 AM (in response to k.loy)You need to adapt the code to the name of your specific accordion. Change the "acc1" in the parenthesis:
var acc1 = new Spry.Widget.Accordion("Acc1", { useFixedPanelHeights: false });
You may also need to change the first acc1 after var as well. Try changing the one in quotes first, and then change the first one if necessary.
-
5. Re: trying to use some of the variations for accordian
k.loy Jan 15, 2010 8:57 AM (in response to janken71)OK, I did that. It's working fine and the accordion is sizing to the panels. There are 3 panels.
The panel tab for the third one ends up on top of the content for the 2nd one?? Though the PANELS are sizing to the content, but the TABS are acting like the heights are fixed??
-
6. Re: trying to use some of the variations for accordian
janken71 Jan 15, 2010 9:17 AM (in response to k.loy)Can you update your site for the changes you made so I can see if I can replicate the problem?
-
7. Re: trying to use some of the variations for accordian
k.loy Jan 15, 2010 9:51 AM (in response to janken71)ok the page is back up
-
8. Re: trying to use some of the variations for accordian
janken71 Jan 15, 2010 12:24 PM (in response to k.loy)Remove the following before your closing body tag:
<scri pt type="text/javascript">
<!--var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//--></script>
The code for the varying heights is actually the same as this code with a couple extra functions, so it might be rendering improperly with 2 instances there.
-
9. Re: trying to use some of the variations for accordian
k.loy Jan 15, 2010 12:37 PM (in response to janken71)OK I tried that and the accordion doesn't work at all.
The page just displays all the copy as if there is no accordion at all.
-
10. Re: trying to use some of the variations for accordian
janken71 Jan 15, 2010 12:44 PM (in response to k.loy)Try moving this code out of your header and into the body now:
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false });
</script>
Place it at the end where the code you just deleted was previously located.
-
11. Re: trying to use some of the variations for accordian
k.loy Jan 15, 2010 2:02 PM (in response to janken71)Nope still not working. Thanks for trying to help
-
12. Re: trying to use some of the variations for accordian
janken71 Jan 15, 2010 2:17 PM (in response to k.loy)Have you tried using a specific height for your container around the accordion? I believe it's your #content. You could try using a much larger height than the maximum size of the accordion, like 1000px. The reason for this is that it could be that the content of the center panel is overflowing out of that container, but the browser isn't resizing the container according to that content; and is instead measuring against the last tab's position. For this reason you could also try adding overflow:hidden styles to the content areas of the accordion, or even to the larger container.
-
13. Re: trying to use some of the variations for accordian
k.loy Jan 15, 2010 10:50 PM (in response to janken71)Thanks but this didn't work either.
To boot I just in Safari there is a gray border around the entire accordion when you click on one of the tabs.
-
14. Re: trying to use some of the variations for accordian
k.loy Jan 17, 2010 10:45 AM (in response to k.loy)I think the added js scripts are just being ignored for some reason. I tried to add the one that opens the page with all panels closed and that one doesn't work either. Someone please help!!!
-
15. Re: trying to use some of the variations for accordian
k.loy Jan 20, 2010 11:38 AM (in response to k.loy)In case anyone is interested I realized that I had the
js script in the wrong place.
The function needed to go at the bottom instead of in the head tag.


