Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1092545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:41:55+00:00 2026-05-16T23:41:55+00:00

I want to allow user to drag and drop UI elements. I’ve ‘container’ and

  • 0

I want to allow user to drag and drop UI elements. I’ve ‘container’ and ‘control’, control may be in container, containers may include other containers (this is important requirement). I created simple prototype using jQuery.

HTML:

<div class="one">
<div class="control">Control 1</div>
<div class="control">Control 2</div>
<div class="control container">
  Container drag area
  <div class="control">Subcontrol 1</div>
  <div class="control">Subcontrol 2</div>
  <div class="control">Subcontrol 3</div>
  <div class="control">Subcontrol 4</div>
  <div class="control">Subcontrol 5</div>
  <div class="control">Subcontrol 6</div>
  <div class="control">Subcontrol 7</div>
  <div class="control">Subcontrol 8</div>
  <div class="control">Subcontrol 9</div>
</div>
<div class="control">Control 3</div>

Then I created sortables using jQueryUI:

$('.one').sortable({
  items: 'div.control',
  placeholder: 'placeholder',
  forcePlaceholderSize: true
});

Now when I’m trying to drag “Subcontrol 8” and place it between “Subcontrol 2” and “Subcontrol 3” for example I’m getting jumpy effect, you can observe it here:

http://jsbin.com/egipu4/2

Interesting thing is – when I remove ability to drag “container” then it becomes smooth and perfect (you can see this on jsbin example below “jumpy” example, you can’t drag using “Container drag area” span). I tried different “nested” plugins and techniques, google’d for a long time and the only one that worked was on this page:
(StackOverflow doesn’t allow me to post more than one like, google for “Brian Swartzfager’s Blog: Nested List Sort Demo” should be first, sorry!)

But it does work great only in jQuery1.2 and very old jQueryUI. If I include latest jQuery (1.3/1.4) and UI (1.7/1.8) it gets jumpy as well. What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:41:56+00:00Added an answer on May 16, 2026 at 11:41 pm

    in case you are still interested, I recently developed a plugin which makes nested sorting work with the latest jQuery and jQuery UI

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to allow a user to drag my Win32 window around only inside
Using dojo.dnd, I want to allow a user to drag only one item at
I've got a couple trees that I allow a user to drag and drop
I want to allow user contributed Javascript in areas of my website. Is this
I want to allow user to upload a file of txt ,doc or pdf
I want to allow user to enter only english alphabets and characters. How can
customers does not want to allow user to use back or forward button. Just
I don't want to allow user to double click on my button. On the
I am downloading PDF file in my application and want to allow user to
I want to allow a user to download an html file using a php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.