PDA

View Full Version : Arrow Side Menu -> gotourl on collapse



fuchs
10-14-2010, 10:08 AM
Hi there,

URL: http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm

i have a question about the Arrow Side Menu (accordion)

Is it possible to go to a URL if i collapse the accordion? Currently the accordion will only closed without executing the link.

clickgo works only by expanding the header but i need it for collapsing too

Any ideas?

thx fuchs

ddadmin
10-14-2010, 06:33 PM
Please see this thread: http://www.dynamicdrive.com/forums/showthread.php?t=52693

fuchs
10-15-2010, 08:52 AM
Thanks, works perfect!

Now, i have another question. Is it possible to collapse the accordion and go to a URL with this code?

<a href="#" onClick="ddaccordion.collapseone('mypets', 0); return false">Expand 1st header</a>

Greets

fuchs
10-18-2010, 09:28 AM
DD Admin?

ddadmin
10-18-2010, 09:39 PM
Sorry for the delay. Inside the modified .js file, try finding the below line:


$targetHeader.trigger("evt_accordion")

and change that to:


$targetHeader.trigger("evt_accordion", true)

fuchs
10-19-2010, 08:22 AM
No problem :) Thx for help

works perfect!

Greets