Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Javascript Drag&Drop & Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Javascript Drag&Drop & Safari



Sorry, that was a copy/paste of some of my code. dragImage is a JS Image object I load elsewhere in code. You can remove the whole setDragImage line to make the dragged element be itself instead of some abstract representation like I use.

Justin

On Oct 17, 2006, at 4:14 PM, Eric wrote:

Eric wrote:

Can you go into a bit more detail about where 'dragImage' came from in:
dragStart = function () {
event.dataTransfer.setData("text/plain", "foo");
event.dataTransfer.effectAllowed = "copy";
event.dataTransfer.setDragImage(dragImage, 16, 15);
}

I figured this one out...to at least some degree.

see:

http://ericgorr.net/safaritest.html

for a working test...just drag the text to a text editor.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Interesting web technology (From: Eric <email@hidden>)
 >Re: Interesting web technology (From: Justin Anderson <email@hidden>)
 >Javascript Drag&Drop (From: Eric <email@hidden>)
 >Re: Javascript Drag&Drop (From: Eric <email@hidden>)
 >Javascript Drag&Drop & Safari (From: Eric <email@hidden>)
 >Re: Javascript Drag&Drop & Safari (From: Justin Anderson <email@hidden>)
 >Re: Javascript Drag&Drop & Safari (From: Eric <email@hidden>)
 >Re: Javascript Drag&Drop & Safari (From: Eric <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.