Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread Rick Faircloth
--- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Collett Sent: Wednesday, February 21, 2007 11:49 AM To: jQuery Discussion. Subject: Re: [jQuery] accordion table, instead of an accordion list/menu? On 21/02/07, Kristinn Sigmundsson <[EMAIL PROTECTED]> wrote: > Thing is

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread Sam Collett
On 21/02/07, Kristinn Sigmundsson <[EMAIL PROTECTED]> wrote: > Thing is that even if you have a callback to the slideToggle and set > the display property to table-row, it still comes out wierd... > > maybe a wrapping div is the best solution? I have tried wrapping with DIV's, but they don't seem

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread Kristinn Sigmundsson
Thing is that even if you have a callback to the slideToggle and set the display property to table-row, it still comes out wierd... maybe a wrapping div is the best solution? On 2/21/07, rolfsf <[EMAIL PROTECTED]> wrote: > > Thanks Karl - I've scoured the threads - it's definitely on the list of

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread rolfsf
Thanks Karl - I've scoured the threads - it's definitely on the list of hard problems, and labeled "unsolved" http://docs.jquery.com/HardProblems Karl Swedberg-2 wrote: > > I haven't tested any, but there have been a few threads on this issue > before and one workaround I recall reading abou

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread Karl Swedberg
I haven't tested any, but there have been a few threads on this issue before and one workaround I recall reading about was to temporarily wrap a set of rows in a div before showing and hiding and then remove the div after the effect has completed. If you discover this or some other method w

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread rolfsf
Is there a way around that? Can you get simple animation to work on table rows? I can live with a simple show/hide, but it would be nice to dress it up a little. Karl Swedberg-2 wrote: > > Rolf, I think the strange results occur in Firefox because it wants > all elements to have display:tabl

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Karl Swedberg
Rolf, I think the strange results occur in Firefox because it wants all elements to have display:table-row but the .slideX() and .show/hide(speed), etc. methods use display:block --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 9:09 PM

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread rolfsf
by the way, I do notice that if I use .slideToggle instead of .toggle I get strange results... not sure why. Kristinn Sigmundsson wrote: > > ok So something like this almost(?) does it, > $(".collapse_group[a]").click( function () { > $(this).parent().siblin

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread rolfsf
Yes... easy for some, a proud learning achievement for others ;-) I actually figured out the same thing on my own - it's here: http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html Thanks Erik! Erik Beeson wrote: > > That sounds pretty easy: > > $('.accordion').click(func

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Kristinn Sigmundsson
ok So something like this almost(?) does it, $(".collapse_group[a]").click( function () { $(this).parent().siblings("tr").slideToggle("fast", function() { $(this).each( function() { if (

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread rolfsf
Thanks (again) Kristinn! You are correct that there should be a tfoot in there as well... I was abbreviating. I actually got the table working just now on my own (amazing what happens when I slow down, look at visual jquery, and go step by step, and trust myself!) the working table (tested in sa

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Erik Beeson
That sounds pretty easy: $('.accordion').click(function() { $(this).siblings().toggle(); }); See it here: http://www.erikandcolleen.com/erik/projects/jquery/accordian_table.html --Erik On 2/20/07, rolfsf <[EMAIL PROTECTED]> wrote: > > I misspoke - now that I look at it closer and play with

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Kristinn Sigmundsson
First things first, and I could be wrong here, but I believe that the correct syntax for a table is: Not sure several tbody elements is correct... anyway, I did some test, and got some freaky results, I think that the problem lies with the style "display: block" being applied, works fi

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread rolfsf
I misspoke - now that I look at it closer and play with jquery.accordian, I don't want it to function like an accordion menu, since I want each grouping to be toggled independent of each other -- they could all be open, or all closed. sorry for the confusion... rolfsf wrote: > > I'm trying to f

[jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread rolfsf
I'm trying to figure out how to build a table that allows the user to toggle groups of rows, much like the accordion menus made with Jörn's accordion plugin, while keeping reasonably semantically correct markup in the table. My best guess on the markup is posted here: http://www.monkeypuzzle.net