On Feb 24, 10:04 am, Bruno Bornsztein <[email protected]>
wrote:
> CE uses prototype a fair amount (although not excessive). All the ajax
> functionality, autocompletes, and lightboxes use it, as well as the UI for
> polls, managing photos (the custom tinyMCE photo uploader). Like Chris said,
> you can safely us jQuery in addition, but replacing Prototype altogether
> would require a little work (if someone wants to do it and can convince me
> it'd be better to have jQuery, I'm all ears).

Do you explicitly call Prototype, or use Rails' helpers?  I'm
wondering if jRails would help in moving CE to jQuery. jRails is a
drop-in jQuery replacement for Prototype/script.aculo.us,
http://ennerchi.com/projects/jrails gives details of the functions
that jRails takes care of but I'll list them below too, for
simplicity.

We have an existing site in production that uses jQuery and don't
really want to re-write that to Prototype (re-writing it to serve both
seems even more painful) but are interested in plugging-in CE, if we
can work out a practical method.

Any estimates on what value "a little" has in the expression
"replacing Prototype altogether would require a little work"?

Rj

jRails provides drop-in functionality for these existing Rails
methods:

* Prototype
form_remote_for, form_remote_tag, link_to_, observe_field,
observe_form, periodically_call_remote, remote_form_for,
submit_to_remote

* Scriptaculous
draggable_element, drop_receiving_element, sortable_element,
visual_effect

* RJS
hide, insert_html, remove, replace, replace_html, show, toggle

* Visual effects
Appear, Fade, Puff, BlindDown, BlindUp, BlindRight, BlindLeft,
SwitchOff, SwitchOn, SlideDown, SlideUp, DropIn, DropOut, Shake,
Pulsate, Squish, Fold, FoldOut, Grow, Shrink, Highlight.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to