[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread SeViR
Stephan Beal escribió: On Aug 16, 7:39 pm, Mitch [EMAIL PROTECTED] wrote: An interesting point - don't recommend jQ IF the point of your work is teaching JavaScript. In my courses, I teach using Web Services with JavaScript, AJAX techniques, and others HTML Rich Application techniques

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Dragan Krstic
2007/8/16, Glen Lipka [EMAIL PROTECTED]: As a non-programmer, (HTML/CSS only) I understand lt() and gt() mainly because of lt; and gt;. I think those are very easy. The place I get confused a little is when you can say $(p:gt(4)) and $(p).gt(4) and get the same thing. Why both? I suppose

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Erik Beeson
$(p:gt(4)).show().gt(10).css(color,red); Or, if you need to operate multiple time on same collection: var my_coll = $(p); my_coll.gt(3).css(color,red); my_coll.lt(3).css(color,blue); This stuff cannot be done by solely in selector expression. I'm pretty sure this can be done with

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Dragan Krstic
Of course, but I'm in favor of lt gt eq. Maybe 'cause I learned FORTRAN on college ;) 2007/8/17, Erik Beeson [EMAIL PROTECTED]: $(p:gt(4)).show().gt(10).css(color,red); Or, if you need to operate multiple time on same collection: var my_coll = $(p); my_coll.gt(3).css(color,red);

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Mitch
Is this topic changing to the need for removing stuff from jQ? My intention was to just get opinions about the comment Thor made. On Aug 17, 1:04 am, Erik Beeson [EMAIL PROTECTED] wrote: $(p:gt(4)).show().gt(10).css(color,red); Or, if you need to operate multiple time on same collection:

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Mitch
Thank you John - from you that means a lot. Speaking of meaning, are you suggesting I better get moving on this? When you say move it to the wiki do you mean I can go and set this up on the jq site? On Aug 16, 8:45 pm, John Resig [EMAIL PROTECTED] wrote: Great work Mitch - if someone wants to

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Andy Matthews
10:46 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names I like that, I like that alot! On 8/17/07, John Resig [EMAIL PROTECTED] wrote: I'm all in favor of removing gt/lt/eq in favor

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread John Resig
I'm all in favor of removing gt/lt/eq in favor of the selector version with filter. That was the original goal, but I actually decided to introduce an array method into jQuery to solve that problem: .slice(). Now gt/lt/eq will become: gt: .slice(Num) lt: .slice(0,Num) eq: .slice(Num,1) Plus

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Benjamin Sterling
I like that, I like that alot! On 8/17/07, John Resig [EMAIL PROTECTED] wrote: I'm all in favor of removing gt/lt/eq in favor of the selector version with filter. That was the original goal, but I actually decided to introduce an array method into jQuery to solve that problem: .slice().

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread John Resig
The only concern I have is that this could be yet another mysterious method that someone might not know what it does. Will it work just lke javascript's slice method? Yes, of course - that's the only reason why I'm making this change. --John

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Andy Matthews
Then by all means...have at it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Friday, August 17, 2007 10:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread John Resig
I don't understand this argument at all. So this guy is proposing that we change all the jQuery methods to: $Array([array of elems]) $Selector(str) $HTML(html) $Element(DOMElement) and: .appendElement(DOMElement) .appendHTML(html) .appendArray([array of elems]) what on earth does that gain

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Stephan Beal
On Aug 16, 7:39 pm, Mitch [EMAIL PROTECTED] wrote: quote jQuery is definitely a popular utility function library, but the sheer amount of dual/triple/quadruple special-case uses for both function calls and method names is an instant turnoff for me. This also turns me off to some degree. The

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Andy Matthews
: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names I don't understand this argument at all. So this guy is proposing that we change all the jQuery methods to: $Array([array of elems]) $Selector(str) $HTML(html) $Element(DOMElement

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread John Resig
To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names I don't understand this argument at all. So this guy is proposing that we change all the jQuery methods to: $Array([array of elems

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Andy Matthews
- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Thursday, August 16, 2007 1:48 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Sure, that makes

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread John Resig
@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Thursday, August 16, 2007 12:53 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names I don't understand

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Karl Swedberg
, 2007 12:53 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names I don't understand this argument at all. So this guy is proposing that we change all the jQuery methods to: $Array([array

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Andy Matthews
: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Andy, I realize these are contrived examples, but if you're interested in seeing what those selectors/traversal methods (e.g. :lt or .lt() ) can be used for, here are a few links

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Andy Matthews
@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Andy, I realize these are contrived examples, but if you're interested in seeing what those selectors/traversal methods (e.g. :lt or .lt() ) can be used for, here

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Karl Swedberg
] On Behalf Of John Resig Sent: Thursday, August 16, 2007 12:53 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names I don't understand this argument at all. So this guy is proposing that we

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Rey Bango
] *On Behalf Of *Karl Swedberg *Sent:* Thursday, August 16, 2007 2:15 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Andy, I realize these are contrived examples, but if you're interested

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Glen Lipka
@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Sure, that makes sense - and it's obviously difficult. I think the burden may lie on us to write better examples - although, it's hard to think

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Jonathan Sharp
On 8/16/07, Stephan Beal [EMAIL PROTECTED] wrote: On Aug 16, 7:39 pm, Mitch [EMAIL PROTECTED] wrote: *snip* Simon Willison apparently has a similar hang-up about jQuery. And, like i am in my hate-hate relationship with Python, he's in the minority. Minor detail, it wasn't Simon

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Brandon Aaron
Knowing how to do it without jQuery makes me appreciate jQuery that much more. -- Brandon Aaron On 8/16/07, Jonathan Sharp [EMAIL PROTECTED] wrote: On 8/16/07, Stephan Beal [EMAIL PROTECTED] wrote: On Aug 16, 7:39 pm, Mitch [EMAIL PROTECTED] wrote: *snip* Simon Willison apparently

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread David Duymelinck
] *On Behalf Of *Karl Swedberg *Sent:* Thursday, August 16, 2007 2:15 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Andy, I realize these are contrived examples

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread weepy
@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names Sure, that makes sense - and it's obviously difficult. I think the burden may lie on us to write better examples - although, it's hard

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread Mitch
I think this is a very stimulating topic - the responses have given me a lot of insights to the frameworks of which jQuery belongs. I see there are some big issues here that kind of scare me, the one that stood out to me is the claim that jQurey is not for beginners who don't know the DOM, CSS

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-16 Thread John Resig
Great work Mitch - if someone wants to beat me to you, you should move this over to the wiki. I'll try to take a stab at it, if I can remember. --John On 8/16/07, Mitch [EMAIL PROTECTED] wrote: I think this is a very stimulating topic - the responses have given me a lot of insights to the