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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:20:58+00:00 2026-05-28T16:20:58+00:00

I had this working in UI 1.8.6 using this hack , but I cant

  • 0

I had this working in UI 1.8.6 using this hack, but I cant seem to get it to work in 1.8.17.

  • I want to drag items from a list into a sortable.
  • The items should remain in the source list after dropping (so they can be added n times)
  • when i drop the item into the sortable, i want to get a handle on the instance of the dropped item in the sortable.

In the receive method of the sortable:

receive: function(e, ui){
    // ui.item is the original dragged item, not the clone that gets created when dropped
    // ui.helper is a separate clone of the dragged item, it does not get inserted into the sortable
}

so the question is, how do I get a handle on the inserted item? It seems the item hasn’t been inserted (or created) by the time receive is called. Has a change been made to jquery UI or am I missing something?

here’s my code:

$('form').sortable({
    placeholder: "placeholder",
    forcePlaceholderSize: true,
    receive: function (ev, ui) {
        // need handle on dropped item here. ui.item and ui.helper are not it
    }
});


$('.draggableTings').draggable({
    helper: "clone"
    , appendTo: "body"
    , revert: "invalid"
    , connectToSortable: "form"
});

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-28T16:20:59+00:00Added an answer on May 28, 2026 at 4:20 pm

    replacing this

    _uiHash: function(inst) {
        var self = inst || this;
        return {
            helper: self.helper,
            placeholder: self.placeholder || $([]),
            position: self.position,
            originalPosition: self.originalPosition,
            offset: self.positionAbs,
            item: self.currentItem,
            sender: inst ? inst.element : null
        };
    }
    

    with this

    _uiHash: function(inst) {
        var self = inst || this;
        return {
            helper: self.helper,
            placeholder: self.placeholder || $([]),
            position: self.position,
            originalPosition: self.originalPosition,
            offset: self.positionAbs,
            item: this.fromOutside ? this.currentItem : self.currentItem,
            sender: inst ? inst.element : null
        };
    }
    

    seems to have done the trick, nasty though. and probably not fool proof

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

Sidebar

Related Questions

I had this working fine while using toggle, but I need to make these
Weird , i had this working before but stopped out now and doesn't seem
Strangely I had this working before but I reinstalled my system, upgraded to w7
I've been struggling for quite a while to get this feature working: I want
I had this working in prototype.js but it conflicted with a few script files.
Ok, I'm trying to get this working. This is my first time using LINQ.
I had this working an hour ago but must have changed something. How should
So I had this working perfectly fine, but now for some reason I can't
I'm working on a little hack sending MIDI messages from an app using RtMidi
i am working on AMFPHP and i had this problem -> i am using

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.