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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:49:52+00:00 2026-05-21T08:49:52+00:00

In our old system, we used YUI, but the new one is using jQuery.

  • 0

In our old system, we used YUI, but the new one is using jQuery. We have a grid of data. In the old system, on the mousedown event, we made the item draggable. The mouse stayed down, and the user dragged the item. We did this to avoid making everything draggable to preserve resources. The old code looked like:

function dragThisEntity(selfPtr,...) {

//This is the function called when a user clicks on a draggable item in a report.


var dragSpan = Dom.get('dragSpan'+refInst);  

//We now have a div that can be dragged to the calendar

calEvent = new ZMRCalendarEvent('dragSpan'+refInst);
calEvent.handleMouseDown(ev);

In jQuery, on mousedown, we call this function:

function makeDraggable(element){

   var target_id = '#' + element.id;
   //alert(target_id);
   $( target_id ).draggable({scroll:true,scrollSensitivity:100,scrollSpeed:100});

}

If the user clicks again, the span is draggable. What I need is the ability to make the user not have to click again… to continue the mouse down event as I did with the YUI line,

 calEvent.handleMouseDown(ev);

Please note – I know I can make all of them draggable on Dom ready. That’s not what I’m seeking to do because there could be hundreds of them, and I would rather not use the resources if not necessary. I only want to make them draggable if the user clicks on them.

I’m not looking for the basics of the Jquery UI drag and drop. I can do that. 🙂 I am trying a more advanced scheme to conserve resources.

  • 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-21T08:49:53+00:00Added an answer on May 21, 2026 at 8:49 am

    Just run the .draggable() code on DOM ready. You’ll need to use a different selector, though.

    $(function ()
    {
        $('some selector').draggable({
            scroll:true,
            scrollSensitivity:100,
            scrollSpeed:100
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team is creating a new recruitment workflow system to replace an old one.
I'm now considering using gperf generated hash function to replace our old one, but
Our team is developing a new product on the base of the old one
I'm porting our old Active-Record based API over to a new structure to make
We have our domain model declared in rusty old hbm files, we wish to
One of our clients is upgrading their servers because the old machines can't handle
We have a 12-year-old Ms Access app that we use for our core inventory
We are moveing our old Access VBA / SQL 2005 application to new technologys
We've had a slight change to our system which means what used to be
In our code we used to have something like this: *(controller->bigstruct) = ( struct

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.