Hi,
Been trying to work through a simple drag and drop interface using either IMG,
SPAN or DIV tags. That way I can define blocks of text and/or graphics as
draggable and be able to drop them on a similar (img, div, span, etc.) target,
preferably an image.
I can highlight text from an "<input type=text>" field and reach a target to
trigger an event (e.g. alert();), but can't get the same response when the
dragged item is a block of text or an graphic and drop it on either of the same
targets.
Example Page: http://web.newsguy.com/fp2000/testdnd.html
The Microsoft site mentioned that the onDrop event has some default
characteristics that limit the dragged object to an input field, but other tags
can be used if the "ondragover="window.event.returnValue=false" and
ondragenter="window.event.returnValue=false" settings are added to get around
the defaults. Not sure if I'm overlooking the obvious or if I misunderstood
this. Any tips or alternate recommendations appreciated.
Thanks in advance,
Rich
--
Newsguy -- http://newsguy.com