The source of the problem is that they both use $ as a shortcut. But
there are several ways to make the work together, I used prototype
+jquery+scriptaculous together in several projects
One of the most surefire ways to do this, but probably not the most
elegant is the following:

1. Include prototype/scriptaculous before jQuery
2. In the very beginning of your onload.js(or equivalent) file add
jQuery.noConflict(); Make sure onload.js is included before any JS
file that uses the previously includes prototype/other libraries.
3. do a Search/Replace in your onload.js for $ and replace with
jQuery. DO NOT do a Replace All, quickly check each find manually and
go through them, as $ could be used for other things in code besides
the $ shortcut functionality. Be especially careful if you have both
jquery/prototype code in the same JS file, because you have to replace
'$' only for Jquery function calls




On Dec 8, 10:03 pm, Balazs Endresz <[EMAIL PROTECTED]> wrote:
> Older versions of scriptaculous conflict with jQuery, try using 1.8+
>
> http://groups.google.com/group/jquery-en/browse_thread/thread/1c06102...
>
> On Dec 8, 5:18 pm, dpoakaspine <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I read every clue to implement the 2 above libraries. Unfortunately it
> > is still not working.
> > I tried first including prototype then jquery. First jquery then
> > prototype. noConflict() etc. ...
>
> > Could y'all take a look athttp://www.cjd-rz.deandtell me what's
> > wrong? I can't see an error!
>
> > Help would be appreciated,
> > Stefan

Reply via email to