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örn

On 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