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 = $.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) { > var index = $(this).find("h3").index ( ui.newHeader[0] ); > $.cookie("accordion", index, { > path: "/" > }); > } > > }); > > Jörn > > On Tue, Oct 21, 2008 at 2:24 PM, Liam Potter <[EMAIL PROTECTED]> wrote: > > > 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 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 from > >>>>http://bassistance.de/jquery-plugins/jquery-plugin-accordion/ > >>>> Currently to keep the accordion open while navigating a site i add p=1 > >>>> (or whatever number it may need) to the url, which works, but as soon > >>>> as I need to pass other variables through the url it breaks down and > >>>> won't remain open. > >>>> So whilehttp://domain.com/details.aspx?p=2willwork fine, > >>>>http://domain.com/details.aspx?p=2&id=4doesn'twork. > >>>> Now I'm wondering there must be another way to have the accordion > >>>> remain open as someone must of come across this before. > >>>> Any help will be much appreciated