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