
Calling JavaScript from ActiveX object
Hi Paul:
Can you give me a example?
I can't handle events that ActiveX object fires
This is My code
usercontrol.ctl
================================================
Public Event onabc()
Public Sub abc()
RaiseEvent onabc
End Sub
================================================
test.html
================================================
<script language="javascript">
function fnInit()
{
abc.abc();
Quote:
}
document.onreadystatechange = fnInit;
function abc::onabc()
{
alert("abc");
Quote:
}
</script>
<HTML><BODY><OBJECT classid="clsid:0D36026B-D40C-4030-8036-
20E0D040B0D0" id="abc">
</OBJECT></BODY></HTML>
================================================
but nothing happend
how to handle a Activex control's event?
thank you
Quote:
>-----Original Message-----
>Create public events within the ActiveX control and
handle the events in
Quote:
>script.
>Paul.
>> Hello,
>> I have some ActiveX objects that are embedded in some
HTML pages. I would
>> like to call some JavaScript on the HTML pages from
inside the ActiveX
>> objects.
>> There is a (quite obscure) way of doing this from an
applet.
>> Can anyone tell me how this can be done from an ActiveX
object. (I prefer
>> C/C++ sample code but VB code is welcome as well)
>> TIA
>> Silvio Bierman
>.