Hi,
have somebody experience using JQuery in an application Ror join to
prototype?
somebody knows if is possible use Prototype and JQuery all together?
I am trying implement drag and drop effects in a table but nothing
is happening. The javascript is not loaded. I found this two links
that I write below and I done all the steps but the effects didn't
appear in the proves.
Do you really need both prototype and JQuery? In general, if you can
keep it all in one JS framework your app will be easier to build and
maintain.
You can do drag-and-drop with Prototype and Scriptaculous. DevArticles
has an excerpt from the book Ajax on Rails which explains drag-and-
drop: Business Name Generator - Alter
If for some reason you must have only the JQuery version of drag-and-
drop, you may want to investigate using JRails (http://ennerchi.com/
projects/jrails) so that the rest of your Rails helpers are
implemented in JQuery, and then you don't need prototype.
Lastly, if it turns out that you absolutely have to have both
libraries, there is a no-conflict mode in JQuery that makes it
possible. Out of the box, prototype and JQuery don't work together
because they both define the $() function. If you call
jQuery.noConflict(), then you can use jQuery() instead of $(). Note
that this means you'll have to translate any jQuery code you copy from
other sources. More details here: Avoiding Conflicts with Other Libraries | jQuery Learning Center