event notification from ActiveX/COM components

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • coder_1024

    event notification from ActiveX/COM components

    I've embedded an ActiveX/COM object in my web page (i.e. <OBJECT
    ID="MyObject1 ...> ... </OBJECT>). I know I can access the object using
    javascript on the page (i.e. MyObject1.prope rty or MyObject1.metho d).

    I'd like to be able to call a method which returns immediately and then
    later provides notification of progress back to javascript in the page.

    How does one provide for an embedded object providing notifications back to
    javascript code on a web page?

    If this is not possible what are the implications of calling an object's
    method which blocks and doesn't return until the task is complete? Would
    this cause the browser to hang?
  • coder_1024

    #2
    Re: event notification from ActiveX/COM components

    "coder_1024 " <notanemail@not adomain.com> wrote in
    news:Xns9420DA2 911E2Bcoder1024 @130.81.64.196:
    [color=blue]
    > I've embedded an ActiveX/COM object in my web page (i.e. <OBJECT
    > ID="MyObject1 ...> ... </OBJECT>). I know I can access the object
    > using javascript on the page (i.e. MyObject1.prope rty or
    > MyObject1.metho d).
    >
    > I'd like to be able to call a method which returns immediately and
    > then later provides notification of progress back to javascript in the
    > page.
    >
    > How does one provide for an embedded object providing notifications
    > back to javascript code on a web page?
    >
    > If this is not possible what are the implications of calling an
    > object's method which blocks and doesn't return until the task is
    > complete? Would this cause the browser to hang?
    >[/color]

    I figured it out. You just create a JavaScript block and use the for
    keyword. i.e. <script for="MyControl1 " event=....>. This allows
    handling custom events from the control.

    Comment

    Working...