Skip to main content
JBWebWorks
Inspiring
September 19, 2008
Answered

spry accordian

  • September 19, 2008
  • 1 reply
  • 832 views
i have spry accordian panel which opens by default (i think) to the top paneltab panelcontent, no matter which page is open.
How do you set it to have a certain paneltab panel content open on page load?

thanks for your help
jim balthrop
This topic has been closed for replies.
Correct answer Newsgroup_User
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>

Needs to be this:

<script type="text/javascript" src="../SpryAssets/SpryURLUtils.js"></script>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Fordwebs, LLC
http://www.fordwebs.com


"JBWebWorks" <webforumsuser@macromedia.com> wrote in message
news:gb3kvp$hrn$1@forums.macromedia.com...
>i get an error on page load
> 'params panel' is null or not an object
> also
> 'spry.utils' in null or not an object


you just need

?panel=4

with 4 being the panel you want to open

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Fordwebs, LLC
http://www.fordwebs.com


"JBWebWorks" <webforumsuser@macromedia.com> wrote in message
news:gb3oe7$lk8$1@forums.macromedia.com...
> thanks, that corrected the all panels open on page load 'chefs.php'
>
> now i am back to the link from the home page, which is
> <a href="homepage/chefs.php?tab=6&pane6=6#TabbedPanels6">
>
> and when chefs.php loads only panel 1 is open?
>

1 reply

Inspiring
September 19, 2008
http://foundationphp.com/tutorials/spry_url_utils.php

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Fordwebs, LLC
http://www.fordwebs.com


"JBWebWorks" <webforumsuser@macromedia.com> wrote in message
news:gav2s6$qg2$1@forums.macromedia.com...
>i have spry accordian panel which opens by default (i think) to the top
> paneltab panelcontent, no matter which page is open.
> How do you set it to have a certain paneltab panel content open on page
> load?
>
> thanks for your help
> jim balthrop
>

JBWebWorks
Inspiring
September 20, 2008
thanks for your response. Having a few problems. on the page opened from the link, i want panel #7(out of 8) open and now all are open on page load.
coding
the url query - <a href="homepage/chefs.php?tab=6&panel=6#TabbedPanels1">Chefs Restaurant</a>

code on the chefs.php
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script type="text/javascript">
var params = Spry.Utils.getLocationParamsAsObject();
</script>
and
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {defaultPanel: params.panel ? params.panel: 0});
//-->
</script>

ps - i did buy
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP—published by friends of ED on 23 July 2007.
on Amazon