I have drag and drop mostly working fine, but there are still a few
minor issues that I'm trying to work through.  I'm wondering if the
following is possible:

* Get the elements surrounding the area where a drag item was
dropped.  Say I have the something that looks like this (dumbed down):

<div>
  <div>First Div</div>
  <div>Second Div</div>
  <div>Third Div</div>
</div>

If I drop the drag item between any 2 of the contained divs above, is
there a way for me to get a handle on either one?  Here is code that I
used for (an admittedly old version of) Dojo (I'm currently converting
from dojo to jquery).

          var i = this._getNodeUnderMouse(e);
          if(i < 0)
          {
            if(this.childBoxes.length)
            {
              refNode = this.childBoxes[0].node;
              before = (dojo.html.gravity(refNode, e) &
dojo.html.gravity.NORTH);
            }
          }
          else
          {
            refNode = this.childBoxes[i].node;
            before = (dojo.html.gravity(refNode, e) &
dojo.html.gravity.NORTH);
          }

but I'm not able to find any kind of analog in jquery.  I'm sure it's
there but am not seeing it.  What am I missing?

* I know that I can change the class of the drop target by defining
the "hoverClass" attribute.  Using that, I can set, say, the
background-image to something that says "Drop Here" (as dojo does).
But that is going to set it as the background image for the entire
element.  What I really want is to just display the "Drop Here" image
within the drop target but only underneath the drag item.  I know I
can change the class for the drag item by using the "activeClass"
attribute (though, I've yet to get that working).  But that would
change the background for the drag item and not appear "on" the drop
target at all.  I suppose if I can get the previous issue addressed, I
can use that information and just place the image in the determined
position.  But is there another method or mechanism that's already
available for me to use which does this?

Thanks for all your help!

thnx,
Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to