logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-11-2010, 09:16 AM   #1
andy23
 
Join Date: Sep 2010
Posts: 2
Default Creating button at bottom of collaspible panel

Hi all

I am wondering if its possible to create something so after people have opened and read my collaspiable panel (and they are at the bottom) they click a link which says CLOSE and it shuts the panel down so they can then easily open/read the next one.

Andy
andy23 is offline   Reply With Quote
Old 09-11-2010, 09:40 AM   #2
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Hi Andy and welcome to the forum. Do you mean it working like an accordian widget? http://labs.adobe.com/technologies/s...dion_overview/
Corrosive is offline   Reply With Quote
Old 09-11-2010, 10:11 AM   #3
andy23
 
Join Date: Sep 2010
Posts: 2
Default

Thanks for the welcome Wish i had discovered the site earlier, found useful info already!

in reply to your post........sort of.....although with the accordian you always have a section open, and i would like all closed on default.

Here is an example of what i have done http://www.mrkarting.co.uk/New_10/grandprixevents.htm

as you can see when it loads all are closed and someone said it would be good if you had the close option at the bottom of the content in each panel

Andy
andy23 is offline   Reply With Quote
Old 09-11-2010, 10:25 AM   #4
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Must admit I haven't ever used Spry. I tend to go with JQuery for stuff like that. There's a member here called DWCourse and he may have a better idea than me.
Corrosive is offline   Reply With Quote
Old 09-11-2010, 10:42 AM   #5
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

I believe it's possible with spry collapsible panels if you just figure out what the onclick event is to close a panel, so that you can add this onclick event to your self-made closing anchor tag too.
gentleone is offline   Reply With Quote
Old 09-11-2010, 10:44 PM   #6
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

believe this might work

<a href="#" onclick="CollapsiblePanel1.close();">Close Panel</a>

replace the number 1 at the end with the number of the panel (I think they start at 0)
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com