You can shorten that to (function($) { $(function() { //my stuff here }); })(jQuery.noConflict());
or jQuery.noConflict()(function($){ //code for dom ready here }); Plugins should already being protected by using a (function($){} (jQuery), so, as long as you only use the '$' alias _inside_ that function everything should be alright. That's indeed the most practical way to avoid conflicts, IMO. - ricardo On Jan 20, 8:39 pm, rolfsf <rol...@gmail.com> wrote: > Trying to use jQuery & some plugins alongside Prototype/Scriptalicious > in Tapestry > > I added noConflict to my scripts using this method: > > jQuery.noConflict(); > > (function($) { > $(function() { > > //my stuff here > > }); > })(jQuery); > > But I'm not clear as to whether or not I need to go through each > plugin script adding noConflict() as well. Or if I've just chosen the > wrong technique... > > Can anyone clarify? > > Thanks