Re: [jQuery] Some jQuery tips and tricks

2007-02-17 Thread Dmitrii 'Mamut' Dimandt
I've changed the examples and their look a bit. Also, added RSS 2.0 feed: http://dmitriid.com/jquery/en/rss.xml Dmitrii Dimandt wrote: > Hi all > > I've started collecting some examples I've come across while solving > problems using jQuery. I guess they could be interesting to the > community

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread Dmitrii 'Mamut' Dimandt
I personally prefer writing $(document).ready(fn) in full because it is easier to spot agent2026 wrote: > Why wouldn't you use $(fn) here instead of $(document).ready(fn)? > > Adam > > > > > Karl Swedberg-2 wrote: > >> $(document).ready(function() { >>$('#wrapper p').hide() >>$('#wrappe

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread agent2026
Why wouldn't you use $(fn) here instead of $(document).ready(fn)? Adam Karl Swedberg-2 wrote: > > > $(document).ready(function() { >$('#wrapper p').hide() >$('#wrapper h2').filter(':even').css('backgroundColor', > '#ef').end().filter(':odd').css('backgroundColor', '#ef').e

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread Dmitrii 'Mamut' Dimandt
viewing the code. > > > > No need to change what you have online. > > > > Sorry for the confusion! > > > > Rick > > > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > *On Behalf Of *Dmitrii 'Mamut' Dimandt > *Sent:* Thursda

Re: [jQuery] Some jQuery tips and tricks

2007-02-15 Thread Rick Faircloth
uery] Some jQuery tips and tricks Yes, thank you. I will change the example to include different approaches ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Some jQuery tips and tricks

2007-02-15 Thread Dmitrii 'Mamut' Dimandt
Thank you! I will incorporate those changes! Kenneth wrote: > Interesting site, I was actually thinking of compiling something > similar myself, but more to do with either obtuse uses of $(). > However, I did notice a few things about your examples and thought I'd > mention them to you. These are

Re: [jQuery] Some jQuery tips and tricks

2007-02-15 Thread Dmitrii 'Mamut' Dimandt
two different approaches to the problem, instead > > I saw the same code and was confused. > > > > Does that make any sense? :o) > > > > Rick > > > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > *On Behalf Of *Dmitrii Dimandt > *Sent:*

Re: [jQuery] Some jQuery tips and tricks

2007-02-14 Thread Kenneth
Interesting site, I was actually thinking of compiling something similar myself, but more to do with either obtuse uses of $(). However, I did notice a few things about your examples and thought I'd mention them to you. These are merely suggestions; I won't be offended if you ignore me :) In the

Re: [jQuery] Some jQuery tips and tricks

2007-02-14 Thread Rick Faircloth
Dimandt Sent: Wednesday, February 14, 2007 10:40 AM To: jQuery Discussion. Subject: Re: [jQuery] Some jQuery tips and tricks On 2/13/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: I know I'm very new to jQuery, but I thought my understanding of what was going on had been set back a few

Re: [jQuery] Some jQuery tips and tricks

2007-02-14 Thread Dmitrii Dimandt
On 2/13/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: I know I'm very new to jQuery, but I thought my understanding of what was going on had been set back a few light years… :o) What exactly do you mean? :) What i like about jQuery is that you can "go with the flow" of your thoughts. If you

Re: [jQuery] Some jQuery tips and tricks

2007-02-14 Thread Dmitrii Dimandt
On 2/13/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: Looks good to me. Also, instead of this... $("p", $(this).parent()).slideToggle("slow"); ...you could do this: $(this).siblings('p').slideToggle('slow'); Thank you. I completely overlooked this possibility :) _

Re: [jQuery] Some jQuery tips and tricks

2007-02-14 Thread R. Rajesh Jeba Anbiah
On Feb 13, 10:47 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > On Feb 13, 2007, at 11:22 AM, R. Rajesh Jeba Anbiah wrote: > > > For #1, what about: > > $(document).ready(function() { > >$("#wrapper p").hide(); //hide initially > >$("#wrapper h2").click (function() { > >$("p", $

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Karl Swedberg
On Feb 13, 2007, at 11:22 AM, R. Rajesh Jeba Anbiah wrote: For #1, what about: $(document).ready(function() { $("#wrapper p").hide(); //hide initially $("#wrapper h2").click (function() { $("p", $(this).parent()).slideToggle("slow"); }); }); Looks good t

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread R. Rajesh Jeba Anbiah
On Feb 13, 2:23 pm, "Dmitrii Dimandt" <[EMAIL PROTECTED]> wrote: > I've started collecting some examples I've come across while solving > problems using jQuery. I guess they could be interesting to the > community as a whole. > > These (sort of) tricks are available here:http://dmitriid.com/jquery/

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Rick Faircloth
ars. :o) Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitrii Dimandt Sent: Tuesday, February 13, 2007 7:30 AM To: jQuery Discussion. Subject: Re: [jQuery] Some jQuery tips and tricks Thank you! The example has been updated! On 2/13/07, Klaus Hartl <[EMAIL PROTECTED

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Dmitrii Dimandt
Thank you! The example has been updated! On 2/13/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: Here's more semantic markup I'd use for that: Title 1 Body 1 Title 2 Body 2 Title 3 Body 3 The good thing ab

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Klaus Hartl
Dmitrii Dimandt schrieb: > Hi all > > I've started collecting some examples I've come across while solving > problems using jQuery. I guess they could be interesting to the > community as a whole. > > These (sort of) tricks are available here: http://dmitriid.com/jquery/en/ > > I hope to add mor

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Rafael Santos
Just one comment, i dont like to repeat ID's =) 2007/2/13, Dmitrii Dimandt <[EMAIL PROTECTED]>: Hi all I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a whole. These (sort of) tricks are availabl

[jQuery] Some jQuery tips and tricks

2007-02-13 Thread Dmitrii Dimandt
Hi all I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a whole. These (sort of) tricks are available here: http://dmitriid.com/jquery/en/ I hope to add more examples with time. Hopefully, this wil