By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,259 Members | 1,708 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,259 IT Pros & Developers. It's quick & easy.

event notification from ActiveX/COM components

P: n/a
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?
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"coder_1024" <no********@notadomain.com> wrote in
news:Xn***********************@130.81.64.196:
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.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.