I think you can not use window.onload because this event actually starts 
your GWT application. If you use it inside your GWT application the onload 
has already been occurred.

With GWT 2.6 RC you could do (untested):

Element activeXObject = Document.get().getElementById("Draggable");
if(activeXObject == null) {
  Window.alert("not found");
} else {
  // requires GWT 2.6 RC. GWT 2.5.1 will complain that it does not know 
DropCompleteEvent
  DOM.sinkBitlessEvent(activeXObject, "DropCompleteEvent");
  DOM.setEventListener(activeXObject, new EventListener() {
    // implement.
  }
}

You need to call DOM.setEventListener(activeXObject, null) once you are 
done and the ActiveX control should be removed from the DOM. Otherwise you 
get a memory leak.

If you can't use GWT 2.6 RC then you have to call your own JSNI method to 
register the DropCompleteEvent and its handler but just don't do it in a 
function that is attached to window.onload.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to