On Thu, Nov 08, 2007 at 01:04:01PM +1300, Gareth Evans wrote: > What I want... > > Is a library of these sort of controls, implemented purely for prototype. [...]
I've been working on such a thing for use at my new (as of 6 weeks ago) job. I've been calling them Behaviours in honor of (what I believe to be) the first foray into the idea of unobtrusive JavaScript at <http://bennolan.com/behaviour/>. While the initial idea of behaviours was fairly simplistic (though very flexible), what I've put together allows decorating a normal HTML page with specially formed CSS class names that identify and configure desired behaviours. > Often I have a need for some quite simple numeric-only inputs, and I wrote > some validation code for this that works on keypress (i'm not sure where it > is right now) [...] Yup, I implemented that recently. Also a similar one for dollar value entry that allows a single period and reformats to two decimal places on blur. Also a list-to-list (i.e. list on the left of available choices, list on the right of selected choices, buttons between to move choices from one to the other). Also a couple of other useful ones, and I expect to keep expanding it. > I know you're about to say, "well why don't you volunteer?" > I would be happy to assist but I am a little bit overloaded as it is at the > moment without trying to manage a community project as well :) [...] I would very much like to open source this, but two things need to happen first: 1) convert to Prototype 1.6 from 1.5 (particularly vital due to the revamp of the Hash API) 2) permission from my employer to do so, since they own it; this is plausible, but I don't know how likely > What are people's thoughts on this? > If done properly, you'd need to decide on what was and wasnt going to be > included. I think you just need an website that makes it easy to select a set of behaviours and download them in a convenient tarball/zipfile. > Gareth Evans --Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
