News for hackers. Stuff that matters.
Re:Ask HN: Current best practice for drag-and-drop? by cjjuice on Tuesday August 19, 2014 @12:33PM (#8198255)
It is not dirty, jQuery and jQuery UI have been tried and tested. I wouldn't reinvent the wheel here unless you need to.
Re:Ask HN: Current best practice for drag-and-drop? by couchand on Tuesday August 19, 2014 @12:37PM (#8198289)
Don't get me wrong, I love jQuery. What's dirty about it is including the whole library when all we really need is UI's Draggable and Droppable. jQuery UI does have a custom download builder, so that's good.
Re:Ask HN: Current best practice for drag-and-drop? by cjjuice on Tuesday August 19, 2014 @12:39PM (#8198299)
yeah I would just include the elements of JQuery UI you need. I just implemented a drag to cart feature on an site I am working on and it works great.
Re:Ask HN: Current best practice for drag-and-drop? by MalcolmDiggs on Tuesday August 19, 2014 @02:18PM (#8198890)
My thoughts exactly. Just use the download builder (http://jqueryui.com/download/) to choose the features you need a la carte.