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 983541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:52:28+00:00 2026-05-16T04:52:28+00:00

i have a problem with the revert speed. Here is a working example http://www.jsfiddle.net/V9Euk/94/

  • 0

i have a problem with the revert speed.

Here is a working example
http://www.jsfiddle.net/V9Euk/94/ <– updated

Change something in the sortable list … the speed is fast (revert 100).
But when you drop the “four” into the sortable list, the speed is slow.

But why? oO

kind reagards
Peter

  • 1 1 Answer
  • 3 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-16T04:52:28+00:00Added an answer on May 16, 2026 at 4:52 am

    There’s nothing wrong with the code… except that it was invalid. You had a incorrectly closed tag, and other oddities inside the code that once cleaned up resolved the problem. I think. Unless it isn’t what you was asking about.

    HTML:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>Untitled Document</title>
        </head>
    
        <body>
            <ul id="k1" style="width:350px; height:350px; margin:20px;">
                <li>One</li>
                <li>Two</li>
                <li>Three</li>
            </ul>
            <hr />
            <ul style="width:350px; height:350px;">
                <li class="gt">Four</li>
            </ul>
        </body>
    </html>
    

    CSS:

    body {
        font-size: 12px;
    }
    
    li{
        border:1px solid #444444;
        background-color:#AAAAAA;
        padding:10px;
        margin:10px;
    }
    

    jQuery:

    $("#k1").sortable({   revert: '100'  });
    $('.gt').draggable({ connectToSortable: '#k1', revert: 'invalid', revertDuration: 100 });
    

    Edit: Sorry, I misread the question. The code was slightly confusing, and I missed the problem. The solution is a little bit of a kludge, but I think it will work.

    var original = $('#k1');
    
    original.sortable({ revert: 100  });
    $('.gt').draggable({
        connectToSortable: original,
        revert: 'valid',
        revertDuration: 100,
        stop: function(event, ui) {
            original.sortable("option", "revert", 100);
        }
    });
    

    Basically it re-set the revert option on the k1 div after .gt is dropped.

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

Sidebar

Related Questions

what I have tried so far here : http://jsfiddle.net/yusaf/VVEY9/26/ I have a problem with
I have a fairly infrequent problem occuring with source control. In the example here
I have problem with starting processes in impersonated context in ASP.NET 2.0. I am
I have a problem where I need to change the html of a draggable
I'm working on a little problem. I have <li> elements and I want to
Odd problem here. Working with an existing system that uses TinyMCE as it's text
I have problem with $_POST data. Some fields are missing from input form when
I have problem with Android using the class HttpUrlConnection my method is this: public
I have problem thinking this trough with PHP & Mysql . I have read
I have problem in some JavaScript that I am writing where the Switch statement

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.