Thanks Mike, After the alcohol buzz wore down, it was pretty clear that this doesn't belong in prototype. I'll try to submit to scriptaculous and see what happens since their lib is totally heavy weight. Can't wait to see your vision up and running. Keep me posted. Although I do have some ideas for prototype after having used it to develop this effect. Thanks again.
-James ----- Original Message ---- From: Michael Peters <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, April 19, 2007 5:36:10 AM Subject: [Rails-spinoffs] Re: How can I extend the Element object so that I can propose a light-weight element drop shadow effect. jpongin wrote: > Out of necessity, I made a super lightweight opacitized drop shadow > effect you can apply to any element -- even multiple elements without > breaking stacking order -- tested on FF2.x, Safari, Opera, IE6, and > IE7 of course. It's also sensibly configurable -- not too much, and > not too little. Good to know and I'm sure it will be quite useful. > 1) Does this belong in prototypejs? I looked at scriptaculous, and > that lib seems a bit too Hollywood compared to this light weight > effect. No. Prototype should remain as small as possible. While this feature would be useful for some, it's hardly a universal must-have. I have a vision of one day creating an archive of javascript libraries built off of prototype and scriptaculous (taking the idea of Perl's CPAN - http://search.cpan.org)). You could define dependencies on other libraries Examples and test suites would be provided that could be run from a browser so you can try before you buy. And lots of other cool things. But I don't really have the time or resources to devote to it now. If something like that ever happens, then you could publish you library there. Until then, setup your own repository and web page for the library. Post it here and just keep the community informed about releases and progress. > 2) If it does have a place in prototypejs, which object should it > belong to? I think it would belong to the Element or Element.Methods > object. I personally wouldn't put it into the Element namespace. I'd pick something different like Shadow or DropShadow. DropShaddow.apply('element_id'); -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
