On Mon, Mar 2, 2009 at 6:00 PM, Rj <[email protected]> wrote:
>
> On Mar 3, 6:52 am, Bruno Bornsztein <[email protected]>
> wrote:
> > > Do you explicitly call Prototype, or use Rails' helpers?
> >
> > Both.
>
> That's annoying :) How much hand-coded Prototype is there?
Not a ton. That I can think of, the lightboxes, some of the swfupload stuff,
and the tinyMCE photo uploader plugin. A lot of the prototype stuff could be
replaced with rails helpers, which could then be substituted with jRails.
>From a quick look in community_enginge's javascripts dir:
application.js - most of this related to the homepage features display,
which isn't even used, so it could likely be cut down
carousel.js - ditto above, I think any javascript-y display of features
should be left to each user's impementation
forum.js - this is used pretty heavily in the forums area
glider.js - used for homepage features display, see above
handlers.js - used for swfupload, this would need to stay
lightbox.js - I wrote this lightbox script a long time ago, I'm sure there
are better ones out there now.
prototip.js - used for the user-menu, this could really be done with CSS, I
think.
rounder.js - not used in the default them, was originally used for rounded
corners.
scrapbooker.js - used for the clippings bookmarklet functionality, this
needs to stay
uploader.js - used for swfupload
A quick search for $(' shows there are about twenty templates that have some
prototype-looking javascript in them.
I don't want to start an argument about that. We obviously have our
> reasons for using jQuery (download size, project momentum) but
> Prototype is certainly the incumbent in Rails. I don't know if a
> project that is designed to plug into existing websites should make a
> choice like that just yet. It's more work but probably it is a better
> idea -- certainly more inclusive -- to leverage projects like jRails
> and try to support both.
Agreed. Prototype vs. jQuery is an argument for a different list. I like
your idea of trying to use the Rails helpers as much as possible, that makes
both frameworks easier to plug in.
>
>
> Rj
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---