Hi Chris,

Tapestry Ensure Backwards Compatibility on server side and also on client side.
As mention by Thiago, you can use both prototype an jQuery with Tapestry.
in Tapestry-jquery we use jQuery plugin structure to make sure $ is safe.

see 
https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/mixins/button/button.js
for example with agnostic structure introduce in 5.3.

When we have to use both jQuery an Prototype on our projects we set
configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
jQuery is then used only inside jQuery Plugin.

François


2011/12/2 Thiago H. de Paula Figueiredo <thiag...@gmail.com>:
> On Fri, 02 Dec 2011 18:52:49 -0200, Chris Collins <chris...@me.com> wrote:
>
>> jquery and prototype living together in perfect harmony
>> ==========================================
>> I am working on a project where I am looking at a number of open source
>> javascript libraries.  Some depend on jQuery and some depend on prototype. I
>> apologize for my ignorance here but it seems the fundamental issue is one of
>> namespace primarily around "$".  I know you can run jQuery in compatible
>> mode but wouldn't this mean that any js library I used that depended on
>> jQuery would need to be hacked up carefully to substitute all $() with
>> jQuery(…)?
>
>
> In theory, all jQuery plugins should *not* use $() and use $jQuery instead:
> http://docs.jquery.com/Plugins/Authoring.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to