[jQuery] Re: Bug? $('#foo #bar')

2007-06-06 Thread Klaus Hartl
Karl Swedberg wrote: On Jun 4, 2007, at 5:38 PM, Klaus Hartl wrote: Makes perfect sense. phew! I was hoping you would say that. :-) No need for fear Karl! You know we share the same mindset! --Klaus

[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread patcoll
I second this notion. A perfect example from a current project: I have two page templates: home and interior. On each I have the client's logo, but they are different sizes. I use an id of logo on both because something bothered me about using #home-logo and #interior-logo. If I put an id of

[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread Sean Catchpole
I suppose I can see a few applications of using multiple id's, but I'm still curious why using classes instead is not a better option. On 6/5/07, patcoll [EMAIL PROTECTED] wrote: #home #logo #interior #logo You could for example have div id=home class=logo My point is that, id's and

[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread R. Rajesh Jeba Anbiah
On Jun 5, 9:54 pm, Sean Catchpole [EMAIL PROTECTED] wrote: I suppose I can see a few applications of using multiple id's, but I'm still curious why using classes instead is not a better option. snip 1. CSS designers don't have to scratch their heads forming the selectors. It's simple,

[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread Matt Kruse
On Jun 5, 11:54 am, Sean Catchpole [EMAIL PROTECTED] wrote: My point is that, id's and classes are the same except for the fact that you can only have one id per element, and only one of each id per page. If you remove that uniqueness of id's then it strips much of it's purpose. CSS

[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread SeViR
The bug is repaired in 1.1.3a - Original Message - Subject: [jQuery] Bug? $('#foo #bar') Date: Mon, 04 Jun 2007 04:42:48 -0700 From: R. Rajesh Jeba Anbiah jQuery 1.1.2 Selectors such as this $('#foo #bar') throwing error when it can't find any matches. Is it a known bug? TIA --

[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread R. Rajesh Jeba Anbiah
On Jun 4, 4:52 pm, SeViR [EMAIL PROTECTED] wrote: The bug is repaired in 1.1.3a snip Oh, cool. Thanks -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/

[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread Sean Catchpole
More importantly, why are you using two ID's? Remember, ID's are supposed to be unique, so just $('#bar') should work. If your ID's aren't unique, I highly suggest you change them to classes. ~Sean

[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread Karl Swedberg
here we go again... :-) I replied to a similar question regarding specifying an ID inside of a class a few days ago. same thing applies to ID inside an ID... This paragraph from the reference section of the upcoming Learning jQuery book might help explain why someone would want or need to

[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread Klaus Hartl
Karl Swedberg wrote: here we go again... :-) I replied to a similar question regarding specifying an ID inside of a class a few days ago. same thing applies to ID inside an ID... This paragraph from the reference section of the upcoming Learning jQuery book might help explain why someone

[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread Karl Swedberg
On Jun 4, 2007, at 5:38 PM, Klaus Hartl wrote: Makes perfect sense. phew! I was hoping you would say that. :-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com