I've been trying that... I've created an event in my activex called EventJSTest and i can fire it by calling Fire_EventJSTest().
 
In my HTML page i've got something like
<SCRIPT LANGUAGE=_javascript_ FOR="" EVENT=EventJSTest()>
    alert("event fired");
</SCRIPT>
 
But whenever then Fire_EventJSTest is called, it seems that JScript is not doing anything...  What's wrong with that ?
----- Original Message -----
Sent: Tuesday, April 08, 2003 1:44 PM
Subject: Re: [MSVC] ActiveX <-> _javascript_ communication

  Hi.
 
I don't think you can just call a _javascript_ method from an ActiveX object.
But you can do like that:
 
1. Create an event that is fired when you want to call the method.
2. From _javascript_, catch that event and call your method. So the method will be called when the event is fired.
 
 
    Costin Gabriel Nila
[EMAIL PROTECTED]
 
"Programming today is a race between software engineers
striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning"
----- Original Message -----
Sent: Tuesday, April 08, 2003 3:07 PM
Subject: [MSVC] ActiveX <-> _javascript_ communication

I am quite new to the list so i don't know if this subject has been already dealt with... but i've got a problem.
I've got an ActiveX object (ATL, non MFC) in an IE Browser. I successfully managed to call that object function from _javascript_, but i can't call any jscript function of the page from the object... Anyone knows how to do that ?
Thanks for your answers.

Reply via email to