Hi Gugi, You can interact with your ActiveX object in GWT code the same way you would access it through regular JavaScript. This can be accomplished by using the JavaScript Native Interface feature available in GWT. Using JSNI, you can write native methods implemented in regular handwritten JavaScript. There are a few catches to be wary about, such as the fact that the 'window' variable must actually be referenced through the '$wnd' variable in JSNI code, but other than that, JSNI is straightforward to use.
Check out the documentation linked below for more details. JavaScript Native Interface: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface Hope that helps, -Sumit Chandel On Thu, Jul 16, 2009 at 10:46 PM, Gugi <[email protected]> wrote: > > Is it possible to access the ActiveX object( using JavaScript) inside > a GWT client code. I need this functionality because I want to > encapsulate my visual basic logic for printing to continuous dot > matrix printers inside the activex and call from GWT code. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
