Hi Jorn,

I am a big fan or your accordion and treeview plugins. I am currently
working on a website that uses Nested accordions for the left
navigation. The only problem I ran across with this solution was that
the outer or parent accordion collapses when you click through the a
page that is in the nested accordion. I see that you are attempting to
use the jquery cookie plugin to allow cookie and location based
persistence. Have you been successful in implementing this into your
accordion plugin?

I was unable to get the accordion to work so I modified your treeview
css to fit my needs. It works great except that the expandable items
are wrapped in span tags rather then link tags. The only problem I see
with this is that I will lose my hover effect in IE6. Not that big of
deal.

On Oct 8, 7:26 am, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Okay, I'm working on a few other improvements as well. In addition to
> the hoverIntent event (see other thread), the accordion should also
> bind click by default (currently the only event). That allows you to
> navigate with the mouse (no clicking) and keyboard (tab + enter). The
> keyboard navigation requires anchors to work, so the attr("tabindex",
> 0) stuff is pretty useless, I'll remove that.
>
> JörnOn Wed, Oct 8, 2008 at 3:03 PM, Ca-Phun Ung <[EMAIL PROTECTED]> wrote:
> > +1
> > This will is a very handy feature to have :)
>
> > On Wed, Oct 8, 2008 at 7:11 PM, Jörn Zaefferer
> > <[EMAIL PROTECTED]> wrote:
>
> >> Hi,
>
> >> would this be useful as part of the accordion?
>
> >> jQuery(function($) {
> >>        var userpanel = $("#accordion");
> >>        var index = $.cookie("accordion");
> >>        var active;
> >>        if (index !== undefined) {
> >>                active = userpanel.find("h3:eq(" + index + ")");
> >>        }
> >>        userpanel.accordion({
> >>                header: "h3",
> >>                event: "hoverintent",
> >>                active: active,
> >>                change: function(event, ui) {
> >>                        var index = $(this).find("h3").index (
> >> ui.newHeader[0] );
> >>                        $.cookie("accordion", index);
> >>                }
> >>        });
> >> });
>
> >> Eg. something like this:
>
> >> $("...").accordion({
> >>   cookie: true // or other options passed through to $.cookie
> >> });
>
> >> Jörn
>
> > --
> > Ca-Phun Ung
> > +http://yelotofu.com
> > + css, django, hongkong, html, javascript, php

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to