Go to Google Groups Home    Low Pro
Re: Prototype + lowpro vs. JQuery

Dan Webb <d...@danwebb.net>

On 1/21/08, Matt Aimonetti <mattaimone...@gmail.com> wrote:

> It would be awesome to port the low pro syntax to JQuery. Now the thing is,
> low pro is just a tiny abstraction layer above proto, in theory we should be
> able to port the same layer to JQuery.

I've considered doing this myself.  Ive used both jquery and prototype
heavily in the past.  The reason I like prototype over jquery is that
prototype offers more general programming tools where as jquery is
just about dealing with the DOM.  Secondarily, in my experience, the
chaining idiom in jquery tempts people into writing some pretty
unreadable code.

However, jquery is really compact, very well documented and does its
job well so I can see the attraction so 10 minutes spend writing
behaviours on top of it would be well spent.  Ill see what I can come
up with.  Something like:

$('.date').attach(DatePicker, { opt1: 34 });

Would do the job, I can even bring over the inheritance stuff...and
the DOM builder.  I'll do it tomorrow morning if I have time.

Cheers for bringing this up...

--
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong