I would like to recommend that we use the JavaScript library
Prototype as part of the Scooby project. The library
provides some
very useful utility functions that could really help to
speed up the
development of Scooby. For example, instead of this:
var fooElement = document.getElementById("foo")
you can do this:
var fooElement = $("foo");
the $ operator will also handle arrays. So you can do this:
var elementArray = $("foo", "bar",
baz");
This just scratches the surface of what it can do. The
library also
has interesting functionality for getting at form elements,
build
hash objects, object ranges, enumeration, etc. It even has
some
fairly nice Ajax support as well. I encourage you to check
it out.
You can find the main site at:
http://prototype.conio.ne
t/
There is a volunteer who maintains a pretty good set of
documentation
for the Prototype framework and you can find it here:
http://www.sergiopereira.com/articles/prototype.js.html
a>
I think this functionality is pretty low level and could
really help
us. If you like Prototype, I encourage you to check out two
more
libraries:
- Scriptaculous, a component and effects library built on
top of
Prototype, http://script.aculo.us/
- Rico, a library of rich JavaScript components (also built
using
Prototype), http://openrico.org/
I would recommend that we consider adopting Prototype into
Scooby and
Cosmo's codebase. Scriptaculous and Rico are interesting
and I hope
that my mentioning them here will spur some discussion about
them and
who knows, maybe they might be good candidates for inclusion
into our
projects as well.
Please post back to the list and tell us what you think.
--> John
_______________________________________________
cosmo-dev mailing list
cosmo-dev lists.osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo-d
ev
|