Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: drag n drop in asp.net


Message #1 by "Divas" <vsdc@d...> on Thu, 6 Jun 2002 16:11:07
hi all!
i am working on an asp.net application. my purpose is to 
implement drag and drop functionality across 2 frames. I 
am using javascript for catching onmouseup, onmousedown 
and onclick events of a <td> and in the <body>. in these 
functions i'm setting the values of htmlcontrol (hidden 
fields) which help me in accessing the 
window.event.srcElement.id

My problem is that onmouseup and onmousedown events have 
precedence over onClick. Hence a click in one frame and then a
click in the other produces the same effect as dragging 
from one frame to another.

I am unable to catch onDragStart and onDrop events which 
are supported by <pre>, <body> and <img> tag in normal 
html, but in my .aspx file these events are not supported
in any tag :( 
is there any way to catch these events? if there is any 
tag which supports these drag events in .aspx, that will 
be the bull's eye solution to my problem. i would be 
really greatful if any kind of help in this front can be 
provided.
thanx,
qry

  Return to Index