Hi,

On Feb 23, 9:42 pm, Syn <[email protected]> wrote:
> Hey,
>
> I'm using a tool which uses prototype. I'm also using my own little
> jquery which looks like this:
> "$(document).ready(function(){
>         $('.flip').click(function(){
>         $('#panel').slideToggle('slow');
>         });
>         });"
>
> The problem is if I include prototype.js then my (above) script does
> not work. I'm really in hurry with the project can't dive into
> prototype's nitty-gritty.
>
> Could somebody let me know how to solve this,
>
> Thanks,
> Syn

This comes up all the time, just do a search for it and you'll find
details.

The short version is: Both jQuery and Prototype try to use the `$`
symbol. jQuery is kind enough to provide a function to relinguish
control of it, called `noConflict`. So just add this after your script
tag that includes jQuery:

<script>jQuery.noConflict();</script>

Then `$` belongs to Prototype, and `jQuery` is how you access jQuery.
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to