Preserved Topic: quick drag and drop question (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 03-16-2002 04:30
ok so I have a simple little drag and drop script located here: http://www.kewlster.com/testing.html and I just noticed that it doesn't work with images. Any ideas??? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-16-2002 05:39
Ah, in order to tell the browser that you've taken care of the mousedown event, so that the browser doesn't try to do something with it itself (such as let you drag the image's url to the address bar), you have to return false from the event. So add |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 03-16-2002 06:40
ok so I see in your insanesrc.js some places where that's called but I really can't make heads or tales of it. I tried return false; and it worked, sorta. Now it doesn't let you do the built in thing where you drag and drop the image somewhere (i.e. another program or something), but it doesn't do my thing either, now it just puts the circle with a slash through it mouse icon up. Any help... Please... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-16-2002 08:23
Hmm, try returning true instead. Try a mix of falses and trues. All the different events behave differently, I forget what wants which. |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 03-16-2002 19:00
I've tried that about a million times and it still doesn't work. Does anybody know this one? Is it just not possible to drag an image? |
Paranoid (IV) Inmate From: Lebanon |
posted 03-18-2002 08:15
it is possible to drag images, |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 03-19-2002 00:00
I've done this a couple of times in IE, here is an example: http://www.dmsproject.com/test/dragger.html |