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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:08:15+00:00 2026-05-28T07:08:15+00:00

I am using jquery ui 1.7.2 alongwith jquery 1.3.2 The following script is causing

  • 0

I am using jquery ui 1.7.2 alongwith jquery 1.3.2

The following script is causing drop event to be triggered twice.. I tried a lot of time but not able to figure out why?

any suggestions to fix this code

$("document").ready(function () {

    $(".draggable").draggable({
        revert: "invalid",
        helper: "clone",
        connectToSortable: ".column"
    });

    $(".column").droppable({
        accept: ".draggable",
        drop: function (event, ui) {
            debugger;
            var ordinalNo = 1;
            $(".column .contentObject").each(function () {
                ordinalNo = ordinalNo + 1;
            });

            var objectId = guidGenerator() + '_' + ordinalNo;
            var objectType;
            var contentObjContent = "<div id=\"" + objectId + "\" ><h2>[<span class=\"ordinal\"></span>] ";

            if (event.srcElement.id === "tableobj") {
                objectType = tableSource;
            }
            else if (event.srcElement.id === "chartobj") {
                objectType = chartSource;
            }
            else if (event.srcElement.id === "textobj") {
                objectType = textSource;
            }

            $.ajax({
                url: "/ContentBuilder/ContentObject",
                data: {
                    viewObjectId: objectId,
                    contentObjectId: null,
                    contentObjectTypeId: objectType,
                    contentObjSourceId: null,
                    ordinal: ordinalNo
                },
                type: "POST",
                success: function (data) {
                    contentObjContent = data;
                }
            });
        }
    });
    $(".column").sortable({
        connectWith: '.column',
        handle: 'h2',
        cursor: 'move',
        placeholder: 'placeholder',
        forcePlaceholderSize: true,
        opacity: 0.4,
        update: function (event, ui) {
            changeOrdinal();
            if (event.srcElement.id.length <= 0) {
                updateObjectOrdinals();
            }
        }
    }).disableSelection();

    $(".tablecolumn").sortable({
        connectWith: '.tablecolumn',
        handle: 'h2',
        cursor: 'move',
        placeholder: 'placeholder',
        forcePlaceholderSize: true,
        opacity: 0.4,
        update: function (event, ui) {
            changeColumnOrdinal();
        }
    }).disableSelection();
});
  • 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-28T07:08:15+00:00Added an answer on May 28, 2026 at 7:08 am

    becouse you use dropable AND sortable on the same selector $(“.column”). I think both triggering a drop.

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

Sidebar

Related Questions

I'm using the following jQuery plugins (along with the jQuery plugin): <script type=text/javascript src=scripts/jquery.scrollTo-min.js></script>
Using jQuery, how do you bind a click event to a table cell (below,
Trying to use JQuery Easing plugin in my wordpress but its giving me following
I am using the following jQuery code to fill my DIV in the ASPX
For the following project I will be using PHP and jQuery. I have the
Using jeditable jQuery plugin along with the timepicker plugin. (custom inputs Time Picker 2
I am using jquery update in drupal 6.16 along with a lot of other
I have an ASP.net webforms site, using jQuery to trigger script methods in asmx
Is there anyway you can submit a form using jquery? I have the following
I'm using Chris Richards' Star Rating jQuery Plugin from Github alongwith the jQuery Template

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.