Capturing an event in MSIE raised by an ActiveX component 
Author Message
 Capturing an event in MSIE raised by an ActiveX component

Hello,
    I am trying to capture an event in MSIE that is raised
by an ActiveX component that I developed.  Basically the
component is throwing up 6 strings in the following
excerpt:
RaiseEvent Notice(Priority, Message1, Message2, Message3,
Message4, Message5)

In MSIE I am very rarely able to get it to capture using:
<SCRIPT  LANGUAGE="VBScript" FOR="NCHSAlert"  
EVENT="Notice(strPriority, strMessage1, strMessage2,
strMessage3, strMessage4, strMessage5)">

I have tried the following but they seem to never work:
Sub NCHSAlert_OnScriptletEvent (strEventName, varMessages)
<SCRIPT  LANGUAGE="VBScript" FOR="NCHSAlert"  
EVENT="onscriptletevent(n,o)">
 Please note that in the first excerpt for some
undetermined reason MSIE does work sometimes - just more
often not.

Does anyone have any comments?



Sun, 23 May 2004 02:52:23 GMT  
 Capturing an event in MSIE raised by an ActiveX component
Humm... I have the same problem....

I did a ATL object, it fires an event to the container.
If the event is driven by another event from IE, (ex
mousedown) it works ok, but if it is fired by an internal
generated event it don't work!   On any other container,
like OCX Test Container or any VB application the control
works great!   Now I know, the problem seens to be the same
with VB...  May be one more "by design behavior" of the
IE...  I found nothing about it on MS docs...

Quote:
>-----Original Message-----
>Hello,
>    I am trying to capture an event in MSIE that is
raised
>by an ActiveX component that I developed.  Basically the
>component is throwing up 6 strings in the following
>excerpt:
>RaiseEvent Notice(Priority, Message1, Message2, Message3,
>Message4, Message5)

>In MSIE I am very rarely able to get it to capture using:
><SCRIPT  LANGUAGE="VBScript" FOR="NCHSAlert"  
>EVENT="Notice(strPriority, strMessage1, strMessage2,
>strMessage3, strMessage4, strMessage5)">

>I have tried the following but they seem to never work:
>Sub NCHSAlert_OnScriptletEvent (strEventName, varMessages)
><SCRIPT  LANGUAGE="VBScript" FOR="NCHSAlert"  
>EVENT="onscriptletevent(n,o)">
> Please note that in the first excerpt for some
>undetermined reason MSIE does work sometimes - just more
>often not.

>Does anyone have any comments?
>.



Fri, 28 May 2004 05:39:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. What means: 'At End of Table' (EDBEngineError exception).

2. Trouble raising events from components in MTS

3. err.raise in ActiveX component - newbie

4. Help needed raising events from ActiveX DLL

5. raising an event from an activeX control on a htm page in a webbrower control

6. raise an event from a form of an ActiveX dll

7. Help needed raising events from ActiveX DLL

8. Event not raised from a SubWindowProc of an ActiveX-EXE

9. raising an event from an activeX control on a htm page in a webbrower control

10. Event not raised from a SubWindowProc of an ActiveX-EXE

11. raising event from form in ActiveX dll

12. Event not raised from a SubWindowProc of an ActiveX-EXE

 

 
Powered by phpBB® Forum Software