Connecting Tech Pros Worldwide Help | Site Map

event notification from ActiveX/COM components

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 11:22 AM
coder_1024
Guest
 
Posts: n/a
Default 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.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?

  #2  
Old July 20th, 2005, 11:23 AM
coder_1024
Guest
 
Posts: n/a
Default 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.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.