Re: [jQuery] Improved Event system new Accordion

2006-10-27 Thread Jörn Zaefferer
Hi Klaus! Jörn Zaefferer schrieb: By the way, is there interest to put the accordion into the jQuery repository? If you create a subdirectory in SVN/plugins this would be really good. Since Klaus and I also made an accordion plugin, we might need to change that to /plugins/accordion1/

Re: [jQuery] Improved Event system new Accordion

2006-10-27 Thread Klaus Hartl
Jörn Zaefferer schrieb: Hi Klaus! Jörn Zaefferer schrieb: By the way, is there interest to put the accordion into the jQuery repository? If you create a subdirectory in SVN/plugins this would be really good. Since Klaus and I also made an accordion plugin, we might need to change that to

Re: [jQuery] Improved Event system new Accordion

2006-10-27 Thread Karl Swedberg
While on the subject of accordion plugins, wouldn't it be nice to use John's nextUntil() plugin for the definition-list accordion so that a DT could take multiple DDs? Just a thought. Karl ___ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 27, 2006, at 3:37

Re: [jQuery] Improved Event system new Accordion

2006-10-27 Thread Wil Stuckey
On 10/26/06, Benjamin Sterling [EMAIL PROTECTED] wrote: Can you supply an example on how you would implement this?Sure, I was working on a demo page but here is a quick example of how this would be put together.The HTML can be any pairing you want dt and dd; h2 and ul; h2 and div.

Re: [jQuery] Improved Event system new Accordion

2006-10-27 Thread Jörn Zaefferer
Karl Swedberg schrieb: While on the subject of accordion plugins, wouldn't it be nice to use John's nextUntil() plugin for the definition-list accordion so that a DT could take multiple DDs? Just a thought. Good thought! I'll try it. In addition, I want to try some kind of

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Franck Marcia
2006/10/26, Jörn Zaefferer [EMAIL PROTECTED]: Hi folks, Hi, Jörn, I just commited a few changes to jQuery's event system. I fixed the target property of the event.target for both IE and Safari, and modified bind: It now accepts an optional third parameter that specifies the number of

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread gilles
Hi folks, I just commited a few changes to jQuery's event system. I fixed the target property of the event.target for both IE and Safari, and modified bind: It now accepts an optional third parameter that specifies the number of times the handler has to executed. When that amount is reached,

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Jörn Zaefferer
Your version relies on the way the menu is described. In extenso, it must be a definition list. Couldn't it be more independant? Is that about semantic? I started with your version and modified it to use a definition list. I'm not sure what would be the best approach. But as it is so very

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Jörn Zaefferer
By the way, is there interest to put the accordion into the jQuery repository? If you create a subdirectory in SVN/plugins this would be really good. Since Klaus and I also made an accordion plugin, we might need to change that to /plugins/accordion1/ and /plugins/accordion2/. I'd rather

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Alex Cook
An accordian widget would be a nice addition. I know of a few places I myself would use it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Thursday, October 26, 2006 6:52 AM To: jQuery Discussion. Subject: [jQuery] Improved Event

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Klaus Hartl
Jörn Zaefferer schrieb: By the way, is there interest to put the accordion into the jQuery repository? If you create a subdirectory in SVN/plugins this would be really good. Since Klaus and I also made an accordion plugin, we might need to change that to /plugins/accordion1/ and

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Gavin M. Roy
Might as well throw my 2 cents in. Here is my accordion code for a ul with an id of navItems with a nested ul: $('#navItems li ul').hide(); $('#navItems li a').click(function(){ var ul = $(this).parent().children('ul'); if ( ul.is(':hidden') ){

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Wil Stuckey
I wrote an accordion plugin as well... I also wanted something that was structurally flexible.I recently re-factored what i had, so this is not that well tested or optimized. Here it is anyway:/*** Utility function to swap className on a jQuery object. * * @example $('p.foo').swapClass('foo',

Re: [jQuery] Improved Event system new Accordion

2006-10-26 Thread Benjamin Sterling
Can you supply an example on how you would implement this? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wil Stuckey Sent: Thursday, October 26, 2006 5:56 PM To: jQuery Discussion. Subject: Re: [jQuery] Improved Event system new Accordion I wrote