Drag and drop problem, please help?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oltmans

    Drag and drop problem, please help?

    Hi,

    I've been using LIs (<li>) and using Sortables (docs.jquery.co m/UI/
    Sortables/sortabl) to sort the LIs. I've attached a mouseover function
    with each LI. Problem (in IE 6 & 7) is that whenever I start dragging
    an LI and when I'm up above an another LI then mouseover function of
    the LI (which is below the LI I'm dragging) is called. How can I
    employ a mechanism so that every LI don't call their mouseover
    function if any other LI is being dragged above them?

    Thanks in advance.

    --Oltmans
  • SAM

    #2
    Re: Drag and drop problem, please help?

    Oltmans a écrit :
    Hi,
    >
    I've been using LIs (<li>) and using Sortables (docs.jquery.co m/UI/
    Sortables/sortabl) to sort the LIs. I've attached a mouseover function
    with each LI. Problem (in IE 6 & 7) is that whenever I start dragging
    an LI and when I'm up above an another LI then mouseover function of
    the LI (which is below the LI I'm dragging) is called. How can I
    employ a mechanism so that every LI don't call their mouseover
    function if any other LI is being dragged above them?
    perhaps ...

    cancelBubble
    stopPropagation


    <p if="inf">info</p>
    <ul>
    <li onmouseover="if (event.stopProp agation)
    event.stopPropa gation();
    else event.cancelBub ble=true;
    document.getEle mentById('inf') .innerHTML = 'Ok 1 or Not ?';">
    blah 1</li>





    --
    sm

    Comment

    Working...