troubleshooting Question

Prevent Hyperlink in Header From Expanding/Collapsing Accordion Pane

Avatar of TSGSJeremy
TSGSJeremy asked on
ASP.NETAJAX
1 Comment1 Solution1546 ViewsLast Modified:
I have an accordion control that I use for navigation. The Header contains a hyperlink to the main category and the content pane contains subcategories. EX

Header: ParentCat (hyperlink)
Content: -Sub1 (hyperlink), Sub2 (hyperlink), etc

When clicking around the ParentCat link the content pane expands and collapses fine - which I want - but when clicking the ParentCat link, the content pane should not begin to open/close since we are leaving that page. All the links work, it's just annoying to see the animation start and then *poof* a new page loads. My client thought it was a 'glitch' and well...it does look like one.

Is there a way to add an onclick event handler to the header link that would prevent the accordion animation?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros