By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,627 Members | 1,870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,627 IT Pros & Developers. It's quick & easy.

Drag and drop problem, please help?

P: n/a
Hi,

I've been using LIs (<li>) and using Sortables (docs.jquery.com/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
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
SAM
Oltmans a écrit :
Hi,

I've been using LIs (<li>) and using Sortables (docs.jquery.com/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.stopPropagation)
event.stopPropagation();
else event.cancelBubble=true;
document.getElementById('inf').innerHTML = 'Ok 1 or Not ?';">
blah 1</li>

--
sm
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.