I had a look, and there's a line missing from event/dragevent.js
 
On line 120, before "// Properties for the event" insert this:
 
 // invokes the ondrop event if activated:
 if (lyr.parent.DragDrop) lyr.parent.DragDrop(lyr);
 
Then it works, I'll post this as patch also.
 
Another thing, in ext/dragdrop.js this line has been removed:
 
DynDocument.prototype.DragDrop=DynObject.prototype.DragDrop;
 
Wasn't that in there to enable dragdrop in frames? Why is it gone?
 
Cheers,
Richard Bennett
 
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
 
----- Original Message -----
Sent: Wednesday, April 04, 2001 12:22 AM
Subject: Re: [Dynapi-Dev] The ondrop event does not seem to work with latest code

Hmm...still does not seem to work.
Where in the architecture is the 'ondragdrop' event invoked?
 
 
----- Original Message -----
Sent: Tuesday, April 03, 2001 6:00 PM
Subject: Re: [Dynapi-Dev] The ondrop event does not seem to work with latest code

replace ondrop with ondragdrop
----- Original Message -----
Sent: Tuesday, April 03, 2001 1:59 PM
Subject: [Dynapi-Dev] The ondrop event does not seem to work with latest code

Here's what I've included...
 
<Script language="Javascript" src="../src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('../src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*');
DynAPI.include('dynapi.ext.dragdrop');
 
 
Here's the code that should produce an alert...
 
myListenerDrop2=new EventListener(myTarget2)
myListenerDrop2.ondrop=function(e) {
    alert('hi')
 }
 myTarget2.addEventListener(myListenerDrop2)
 
 
OS=Win2000
Browsers=Netscape4.72, IE5
 

Reply via email to