# Help with JQuery

**URL:** <https://www.ruby-forum.com/t/help-with-jquery/153142>\
**Category:** Rails\
**Created:** [November 12, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/help-with-jquery/153142 "2008-11-12T16:49:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesarstafe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/779978/32.png) [@cesarstafe](https://www.ruby-forum.com/u/cesarstafe)\
**Post date:** [November 12, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/help-with-jquery/153142/1 "2008-11-12T16:49:38Z")

</div>

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.

[http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/](http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/)  
[http://www.bencurtis.com/archives/2008/10/drag-and-drop-sorting-with-jquery-and-rails/](http://www.bencurtis.com/archives/2008/10/drag-and-drop-sorting-with-jquery-and-rails/)

can somebody tell me about another link or howto to see to fix this?

I have installed on the development machine :

System Debian GNU/Linux lenny  
Rails 2.1.0-5

```
     Many thanks people. Bye

```

–

* * *

[http://www.sindominio.net/ayuda/preguntas-inteligentes.html](http://www.sindominio.net/ayuda/preguntas-inteligentes.html)  
[http://cronopios.net/Traducciones/trolls.es.html](http://cronopios.net/Traducciones/trolls.es.html)  
Gnu/Linux count user #416024

Pagina personal : [http://www.cesardiaz.com.ar](http://www.cesardiaz.com.ar)  
Mi blog : [http://cesarediaz.blogspot.com](http://cesarediaz.blogspot.com)  
Skype user : cesarstafe

---

<div class="post-metadata">

**Author:** ![cesarstafe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/779978/32.png) [@cesarstafe](https://www.ruby-forum.com/u/cesarstafe)\
**Post date:** [November 12, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/help-with-jquery/153142/2 "2008-11-12T22:22:49Z")

</div>

On Nov 12, 10:48 am, “César” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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.

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:

> **[Computer & Software Services & Scientific Services Trademarks - Alter](https://alter.com/trademarks/categories/computer-software-services-scientific-services-42)**

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/](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:  
[http://docs.jquery.com/Using\_jQuery\_with\_Other\_Libraries](http://docs.jquery.com/Using_jQuery_with_Other_Libraries)

– Mark.
