DDNUG - jQuery Presentation Files
Thanks to all that attended my presentation at the Dallas .NET User's Group last night! We had a good time getting started with jQuery.
You can download the demos from the presentation by clicking here.
I'll be on vacation (Spring Break!) for the next week, but will try to catch up promptly and answer any questions/comments on my return.
Thanks again!
Ken

Comments
Teresa Burger said on 4.07.2009 at 9:12 AM
I was wondering if you might be able to lend a little jquery advice. I am trying to make a table tree view. I have no issue one level deep using $(this).siblings('.c-' + this.id).toggle();
The problem is that if there are several levels deep and a lower level is expanded, I need to collapse (toggle) it before toggling the parent.
I have a method in my mind that I believe will work, however, I am not getting the right regular expression to pull it off. I have "trickled" the class down AND marked when a level is expanded so I believe I should be able to first run click on everything that has a class of expanded AND a class of "c-"+this.id. I just can't figure out how to call when the classes could be in any order.
If you could help me with that problem or point me in another direction, all input is apriciated.
Ken Byrd said on 4.07.2009 at 9:09 PM
Teresa -
The book "jQuery in Action" has a sample that I think may be similar to what you are talking about. It's the collapsible list example in chapter 5.
If you don't have the book, you can download the source code for free from www.manning.com/.../bibeault
Just unzip the entire source file, and then go to the chapter 5 examples.
If that doesn't help, give me another shout!
Ken