I find it more practical to use an anonymous function as in (function ($){..}(jQuery) and keep the '$' reference, or do all the work at once to avoid confusion:
(function($){ $(...) })( jQuery.noConflict() ) or jQuery.noConflict()(function($){ $(...) }); On Jan 7, 4:55 am, seasoup <seas...@gmail.com> wrote: > noConflict was designed specifically with prototype in mind :) > > The easiest way to do both jQuery and proto is to do: > > var $j = jQuery.noConflict(); > > and use $j instead of $ for jQuery. > > $j('#id'), for example. > > On Jan 6, 10:23 pm, Magnificent > > <imightbewrongbutidontthin...@gmail.com> wrote: > > Hi Erik, thanks for the reply. I've been messing with things and I > > tried replacing my calls to local versions of prototype/scriptaculous > > to use google: > > > <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/ > > prototype.js" type="text/javascript"></script> > > <script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/ > > scriptaculous.js" type="text/javascript"></script> > > > And it seems to be working now. Does anyone know if there's a known > > issue using jquery's noConflict() with prototype/scriptaculous? I'm > > wondering if the (older) local version I was using was the culprit. > > It looks like it.