Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Accordion with cookie persistence
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jörn Zaefferer  
View profile  
 More options Oct 8 2008, 9:26 am
From: "Jörn Zaefferer" <joern.zaeffe...@googlemail.com>
Date: Wed, 8 Oct 2008 15:26:16 +0200
Local: Wed, Oct 8 2008 9:26 am
Subject: Re: [jquery-ui] Re: Accordion with cookie persistence
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 <cap...@yelotofu.com> wrote:
> +1
> This will is a very handy feature to have :)

> On Wed, Oct 8, 2008 at 7:11 PM, Jörn Zaefferer
> <joern.zaeffe...@googlemail.com> 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


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google