I'm thinking it's time that we catch up with Ruby on Rails in the AJAX/DHTML department. Rails has integrated the Prototype and Scriptaculous libraries into their distribution and there's no reason that Drupal couldn't do the same - either as part of core or as a contrib module.
I'm thinking about building a prototype.module which will essentially be a port of the Prototype functions in Rails. Themes and other modules could call these functions and form fields to access the AJAX functions in these libraries.
I've also looked at Dojo, but right now I'm leaning toward Prototype.
I realize that Drupal has been "rolling its own" AJAX up until now, but the pace has been slow and my feeling is that we've already got our hands full with the PHP functions of Drupal. These AJAX libraries will continue to develop and thrive in parallel and we can continue to benefit from those advances.
Some features I'd love to integrate:
- sortable lists
- in-line editing
- auto-validating form fields
- animated error/info messages
Has anyone else done any work in this direction? Does anyone want to help with this effort?
Got any tips, tricks, ideas, or cautions about this? I'd love to get some feedback before I launch into this project.
Thanks!
-Jeff Robbins