| re: event notification from ActiveX/COM components
"coder_1024" <notanemail@notadomain.com> wrote in
news:Xns9420DA2911E2Bcoder1024@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.property or
> MyObject1.method).
>
> 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. |