Forum: Ruby on Rails help with JQuery

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9585700be7677e1fd09193c1bd8efb23?d=identicon&s=25 Cesar Diaz (cesarstafe)
on 2008-11-12 16:49
(Received via mailing list)
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-...
http://www.bencurtis.com/archives/2008/10/drag-and...

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://cronopios.net/Traducciones/trolls.es.html
Gnu/Linux count user #416024

Pagina personal : http://www.cesardiaz.com.ar
Mi blog : http://cesarediaz.blogspot.com
Skype user : cesarstafe
134ea397777886d6f0aa992672a50eaa?d=identicon&s=25 Mark Thomas (Guest)
on 2008-11-12 22:22
(Received via mailing list)
On Nov 12, 10:48 am, "César" <cesare.d...@gmail.com> 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:
http://www.devarticles.com/c/a/Ruby-on-Rails/Drag-...

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:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries

-- Mark.
This topic is locked and can not be replied to.