[jQuery] Re: making the accordion remain open

2008-10-21 Thread Jörn Zaefferer
Yes, just modify the code I provided accordingly. A solution integrated into the plugin will take some time. Jörn On Tue, Oct 21, 2008 at 2:31 PM, evo <[EMAIL PROTECTED]> wrote: > > Hi Jörn, > > I was wondering how this sets and uses the cookie. > I also assume I can still use a class rather then

[jQuery] Re: making the accordion remain open

2008-10-21 Thread evo
Hi Jörn, I was wondering how this sets and uses the cookie. I also assume I can still use a class rather then a html tag to find the header so h3 could be come .head ? thanks again On Oct 21, 1:27 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > var accordion = $("#accordion"); > var index = $

[jQuery] Re: making the accordion remain open

2008-10-21 Thread evo
This sounds like something which could definitely work. Thanks Jörn On Oct 21, 12:09 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > I'm working on cookie persistence: When accordion is changed, it > stores the active panel in a cookie, and restores that state on page > load. Would that solve y

[jQuery] Re: making the accordion remain open

2008-10-21 Thread Jörn Zaefferer
var accordion = $("#accordion"); var index = $.cookie("accordion"); var active; if (index !== null) { active = accordion.find("h3:eq(" + index + ")"); } else { active = 0 } accordion.accordion({ header: "h3", active: active, change: function(event, ui) {

[jQuery] Re: making the accordion remain open

2008-10-21 Thread Liam Potter
Hi Jörn, I was wondering if you had anything in a workable state for me to use? Thanks, Liam evo wrote: This sounds like something which could definitely work. Thanks Jörn On Oct 21, 12:09 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: I'm working on cookie persistence: When accordion i

[jQuery] Re: making the accordion remain open

2008-10-21 Thread Jörn Zaefferer
I'm working on cookie persistence: When accordion is changed, it stores the active panel in a cookie, and restores that state on page load. Would that solve your problem? Jörn On Tue, Oct 21, 2008 at 12:54 PM, evo <[EMAIL PROTECTED]> wrote: > > Hi, > > I've ran into a problem using the accordion