Hello,

I am trying to integrate an activeX component into GWT application. 

<object id='Draggable' classid='CLSID:4794D615-BE51-4a1e-B1BA-453F6E9337C4' 
codebase='OutLookDragAndDropControlSetup.msi' 
width='200' height='325'/>


Though I have successfully integrated it by adding this to HTMLFlow and in 
turn adding the HTMLFlow to a widget.


However, the actual requirement is that as soon as a file is dropped on 
this activeX component it should automatically call the onDropCompleteEvent 
with arg1 as fileName, args2 as extension and args3 as content. The 
javascript attach event function is shown below. But whatever I do and 
however I do, attach event function is not working.


Can anyone please help me in this regard?


*public* *native* *void* onLoadApplet() /*-{

              function onDropCompleteEvent(args1, args2, args3) {

 

                     alert(args1);

              }

 

              window.onload = function() {

                     var yourActiveXObject = document.getElementById(
'Draggable');

                     if (typeof (yourActiveXObject) === 'undefined'

                                  || yourActiveXObject === null) {

 

                           alert('Unable to load ActiveX');

                           return;

                     }

                     var status = yourActiveXObject.attachEvent(
'DropCompleteEvent',

                                  onDropCompleteEvent);

                     alert("attach done");

              }

       }-*/;

-- 
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