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

  • Home
  • SEARCH
  • 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 6174549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:46:20+00:00 2026-05-23T23:46:20+00:00

I have a page setup where the main aim is to allow users to

  • 0

I have a page setup where the main aim is to allow users to drag and re-order a set of green blocks from one sliding area to another (have a go by dragging a block to the right of the container).

The problem is that when I drag them from area to area the dropping and general sortable-ness is unreliable in that sometimes the area where you can drop the box disappears, or the boxes align incorrectly (shown in the image below)

Before being dragged

blocks before being dragged

When being dragging

blocks being dragging

As you can see when the top left block is dragged it cause the lower one to ‘jump’ over to the other side. I think this could be caused by having the placeholder option in the JS as if I remove it this no longer happens :/

Also (and more worryingly) when dragging over a block from, e.g. the right area to the left, sometimes a placeholder does not even show!!

Placeholder not showing

no placeholder showing on block drag

I had to use $( "#areaOne, #areaTwo" ).sortable( "refresh" ); in the code also to get the connected container to even notice a block is being dragged into it! Maybe it is not ‘refreshing’ correctly..?

Does anyone have any ideas as to how I could fix these unreliable/unstable sortable issues?

The live code can be found here > http://jsfiddle.net/WqZ9m/19/


UPDATE:

Removing the border from the placeholder class has sorted the ‘jumping’ issue, but the placeholder still disappears sometimes when a block is being dragged between areas. The issue goes when the scrolling does not take place (ie. when you remove the scrolling code and drag directly from one area to another), so I’m guessing that the issue is within the main ‘if’ statement.

From looking at the live HTML I have also noticed that when the place hold disappears, it’s actually jumping back to the area from which it was originally dragged!

Updated Code > http://jsfiddle.net/WqZ9m/20/

Here is a Screen recording of the current problem > http://www.youtube.com/watch?v=V-mxOQ2ke28

You will see that the placeholder (the yellow area) disappears :/

Any replies are really appreciated, thanks

  • 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-23T23:46:20+00:00Added an answer on May 23, 2026 at 11:46 pm

    Jquery Sort is very reliable.

    Your problem is the cycle plugin setting out of view divs to ‘display:none’ effectively taking them out of dom calculations (as opposed to visiblity: hidden). You should never have to append and refresh sortable to make something like this work. Doing so while sorting is even more unstable, because you are refreshing without a state.

    May I suggest that rather than using the cycle plugin, you put both your connected sortable areas inside a wrapper with ‘overflow:hidden’. You can then animate those areas in the desired way with the ‘margin-left’ property. Since you are already testing for object position during sort this should be no problem. Simply use your current if block to house your $.animate rather than append refresh and trigger click.

    I forked your fiddle to demonstrate this principle in action (obviously not completed code, but your problem is fixed)

    http://jsfiddle.net/dHZe9/

    Cheers!

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

Sidebar

Related Questions

Can you setup a variable for javascript in one page and have another page
The Setup: I have a page written in JS that has 3 main divs:
I have a page that is setup like this public partial class _Default :
Setup: I have an HTML page with a fieldset element. The background color of
On my portfolio page I have this setup: <div id=portfolio> <ul id=sites> <li> <h3><a
I have a custom error page set up for my application: <customErrors mode=On defaultRedirect=~/errors/GeneralError.aspx
I have some jquery/php interaction set up on a page. It submits some data
I have an ASP.NET website set up, and I'm using Google Analytics for page
So, I have set up a login page that verifies the user's credentials, and
In C#, I have a class set up like so: class Page { public

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.