Drag and Drop: jQuery UI or Scriptaculous?

I am in the middle of the road whether to use jQuery UI or Scriptaculous to drag and drop. I use Ruby on Rails, and the Scriptaculous support in Ruby on Rails is excellent with the presence of scriptaculous_helper.rb . But I already used jQuery to manipulate ajax and DOM. I don't mind using scriptaculous, since we can use jQuery.noConflict() in the code. I also get the impression that dragaculous drag and drop is better than jQuery UI drag and drop based on online demos.

So, back to the original question that you would recommend as a drag and drop library, and which one do you think is better than the other? Scriptaculous or jQuery interface?

+6
jquery prototypejs jquery-ui scriptaculous
source share
4 answers

I use the jQuery UI drag and drop features and I am very pleased with them. In general, they seem very well rounded - ndash; for example, if you drag to the top of the viewport, the page automatically scrolls as users expected.

If you are already using jQuery (but not Scriptaculous), why add the weight of an additional JS structure? Bytes count, and the more you can reduce the client side of the script, the faster your application will work.

+4
source share

I would recommend jQuery UI Drag n Drop, as it has become the standard in web development. It is also a truly extensible model and it is very easy to add custom event handlers and proxy elements during drag and drop.

I would also like to keep in mind how much more jQuery user interface has to offer that you will soon want to take advantage of these benefits:

  • Animation
  • Relief
  • User interface widgets
  • Themes

Another important point that needs to be taken in the decision is how many libraries you want to connect. The use of two libraries is common, but also comes with redundant code. I would recommend going all the way to one library so that you can have minimal client load script. In my version, jQuery offers more suggestions, so I would recommend switching to it, not to mention all the free plugins.

Of course, this is just my opinion, and I think Scriptculous is also a viable option.

+2
source share

I do not think there is a definite answer for this. It depends on what exactly you want to do and what your personal preferences are. Personally, it was easier for me to work with protoytype / scripaculous than with jquery in the specific things I wanted to do, where it was a little easier to do with it than with jquery. However, your preferences may vary.

+1
source share

I personally prefer jQuery. However, I would say that you use the one you prefer, but use only one library. Although you can use both at the same time, it makes no sense to pick and choose components from both, because at some point this will most likely lead to a mess :-)

0
source share

All Articles