- Screen name: tomryandesign
tomryandesign's Profile
3 Posts
10 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- 02-Nov-2010 01:00 PM
- Forum: Using jQuery UI
I'm working on an implementation of the accordion plugin that has an additional link inside the ui-accordion-header div. The additional link is not meant to expand or collapse the accordion panel, but because it's inside the div layer that triggers that event, it does so anyway.
Is there a way to exclude this additional link from triggering the expand/collapse event?- 22-Oct-2010 12:03 PM
- Forum: Using jQuery UI
I'm using the accordion plugin with hash tag navigation, but I'm running into a problem. Each page of my site has an accordion widget on it. The URLs in the second level of my main navigation menu are supposed to open the correct panel of the accordion using the accompanying hash tag, and they are written like so:<li class="lvl2"><a href="/thepage.jsp#panel-3">panel 3</a></li>
The problem is, if you're already looking at one panel of any of the accordions, trying to make a different panel open up with the second level nav doesn't work. It passes the hash tag into the address bar, but it doesn't open the accordion panel unless you refresh the page. So I figured I could solve the problem by adding some jQuery that would cause the page to refresh after 500 milliseconds, like so:
$('.lvl2 a').click(function() {
setTimeout(function() {
location.reload();
},500);
});Except now that sabotages navigation away from the page to a new page and a new accordion panel. Which tells me the answer may be to take full control of the all functionality of the second level navigation and handle it with jQuery.
So how could I alter this to "store" the URL from the href attribute of the anchor tag, pass it to the browser, and then refresh the page?
- 30-Jul-2010 11:54 AM
- Forum: Developing jQuery UI
I would really like to see the next version of the Accordion plugin include an Expand/Collapse All function. It should be a toggle command bound to a link above and outside the main accordion div.
If there's anybody out there who can integrate such a function into the existing script without rewriting the whole thing, I'd greatly appreciate it.
I'm rather surprised it doesn't already include one, considering that it's a fairly common function in most accordion applications.- «Prev
- Next »
Moderate user : tomryandesign
© 2013 jQuery Foundation
Sponsored by and others.

