event notification from ActiveX/COM components

C

coder_1024

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

coder_1024

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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top