The biggest difference between the two at their core is that Prototype
directly modifies javascript's native objects (Array, Object, String,
etc.) while jQuery does not. A more subtle difference is how the use
of the $() function to address DOM objects. Prototype's $() receives a
simple string (or list of strings) which match DOM element ID names,
while jQuery's $() receives a valid CSS selector and creates a
collection of matching elements (even if it's only 1 element in the
case of $("#elementID") ). Prototype separates that approach into the $
$() function to create an Enumerable instance.

There are plenty of other differences, in varying degrees of subtlety.
But more important, i think, is what the libraries have in common: a
very easy to learn way to perform several tasks on the same starting
point target by chaining methods together.But since almost all
libraries of this style provide that, i agree with other posts that
it's probably more important to impress the fundamentals of Javascript
so students know how/why the libraries work the way they do, and why
these different approaches are both valid, and can, with care, co-
exist.
-joe t.


On Mar 24, 6:09 am, "Ali.MD" <alimihando...@gmail.com> wrote:
> thank you very much
> my question about future
> jQuery and prototype and some other javascript library is similar to
> each other
> I can not find a significant difference between them. is that right ?
> a agree jquery is better to teach. and we must to teach other
> javascript library with jQuery
> I'm worried about the future
> What the future will be Prototype and script.aculo.us
> if my future developers want to choose only one library.
> Which should we choose for future ? and why ?
> i dont worry about plugins and extensions because we can use all of
> them together  ;)

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to