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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:42:27+00:00 2026-05-31T17:42:27+00:00

so I have found that when I add both .draggable() and .droppable() to an

  • 0

so I have found that when I add both .draggable() and .droppable() to an element. (in this case, an image) that it won’t work. The .droppable().over: code never fires.

it is probably due to some recursion I use to move my images, but I can’t figure out why its breaking.

I have found out whats broken, and split out the problem domain into a .jsFiddle

I’m thinking I have some kind of event conflict going on with setting the .droppable() code. It can be ‘fixed’ by commenting out the ‘over’ event in the top .droppable()

well I need that ‘over’ event to do some work, hence, my problem.

in the code in the fiddle, you see 2 pawns on some chess squares. hovering one pawn over another should make an alert pop up, but only works when you comment out the “over” event in the top (spot) droppable:

http://jsfiddle.net/KevinGabbert/jBQby/60/

Success means that you pick up one pawn, and hover it over the other. an alert will pop up telling you the ID of the pawn being hovered OVER. (I already have a workaround, but I need to know why the ‘over’ event isn’t working, and how to structure my code to make it work)

I am not looking for a workaround. I am looking to for the answer that makes the ‘over’ code work

  • 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-31T17:42:29+00:00Added an answer on May 31, 2026 at 5:42 pm

    The problem is in your selectors. You should use

    board.AddDragAndDrop(".piece", ".thing")

    When you make the piece droppable it accepts class "ui-droppable" and when you make after that the spot droppable it actually match the pieces because they already have "ui-droppable" class. Your alert on the top is working because you are overriding "droppable" on the pieces. Hope this helps and sorry for my bad english 😉

    Edit:
    when you are calling

    _newPiece.AddPieceEvents(dragSelector);
    

    jQueryUI add class ui-droppable on all pieces and after that you are calling

    _newSpot.AddSpotEvents(dropSelector);
    

    the pieces already have class ui-droppable and you are initializing droppable on them again

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

Sidebar

Related Questions

I have found that my HTML is, to be honest, very clunky. Small, simple
I have found that there is generally a singe type or namespace that takes
I have found that how to determine what columns are primary key column of
I have found that I often have to implement some sort of a scheduler
I have found that creating a zip file using the Zip task provided by
We have found that with our memcache some keys tend to be lost. To
I have done various tests and I have found that the jQuery validate function
I am learning ASP.NET MVC now a days and I have found that most
At every company I have worked at, I have found that people are still
We've recently upgraded one of our SSRS2005 servers to SSRS2008 and have found that

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.