Paul, thanks for the insight, I really didn't know this was possible with jquery as is. I have a little project I use regularly as the basis for a template language called https://github.com/thatcher/jquery-jspath/ which is just a jquery-collection wrapper of steffan goessners jspath. it is very useful, but i'd be just as happy if jquery integrated selectors for javascript primitives since they make perfect sense there, as much as the dom.
On Sun, May 24, 2009 at 4:23 AM, Paul Bakaus <[email protected]>wrote: > Yeah I've seen that - it's great, but imho this addition to jQuery would be > even more intuitive and better suited for simple tasks. > > > On Sat, May 23, 2009 at 4:18 PM, DBJDBJ <[email protected]> wrote: > >> >> Have you seen http://taffydb.com/ ? >> >> On May 22, 7:38 am, Paul Bakaus <[email protected]> wrote: >> > Hey everyone, >> > >> > I today found out that you can use the attribute filter to filter for >> keys >> > in generic objects, which is *way* cool. Check this out: >> > >> > $([ >> > { foo: 1, bar: 0 }, >> > { foo: 0, bar: 0 } >> > ]).not("[foo=0]") >> > >> > => returns [{ foo: 1, bar: 0 }] >> > >> > This is insanely useful if working with JSON or in general big data >> sets, >> > and the only piece missing right now is better comparison methods. So >> I'd >> > like to see "[foo>5]" working, for instance. >> > >> > What do you think? >> > >> > -- >> > Paul Bakaus >> > UI Architect >> > --http://paulbakaus.comhttp://www.linkedin.com/in/paulbakaus >> >> > > > -- > Paul Bakaus > UI Architect > -- > http://paulbakaus.com > http://www.linkedin.com/in/paulbakaus > > > > -- Christopher Thatcher --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
