On Mon, Jul 18, 2011 at 6:59 AM, Alexey Petrushin <[email protected]>wrote:

> So, does anyone use PrototypeJS with jQuery?
>
>
I've used prototype with jquery before.  Now, I only use jquery since it's
supported out of the box
by rails3 (with ajax helpers working using the jquery-rails gem).  I
remember that you just have to
add a single line to make prototype working with jquery.

var $j = jQuery.noConflict();

then remember to use $j instead of $ when you want to use jquery functions.

> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.
>
>


-- 
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to