With SUPPRESS_PROTOTYPE to false, all your jQuery code should work ! Can you test this code : (function( $ ) { $(document).ready(function(){ alert("ok"); }); }) ( jQuery );
There is probably a conflict between the "$". 2012/1/2 csckid <testnowsh...@gmail.com> > I am using tapestry5-jquery version 2.6.1 > > When I wrote this line > *configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");* > Mixin is working but simple jquery isn't working. This is the error message > for simple jquery method > *$(document).ready is not a function* > > > about.tml > <html t:type="layout" title="About tapestryHiber" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" > xmlns:p="tapestry:parameter"> > > > > > > <p id="pelement">If you click on me, I will disappear.</p> > <p id="showid">show</p> > <p id="hideid">hide</p> > > </html> > > > > When I omited this line > *configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");* > mixin gives two error > Error: uncaught exception: controls.js requires including script.aculo.us' > effects.js library > > Error: $T is not defined > Source File: > > http://localhost:8080/medical/assets/1.0-SNAPSHOT/core/corelib/mixins/autocomplete.js > Line: 17 > > > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/jquery-tp5113334p5114790.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr Twitter : @gillespie59