handle Activex event in javascript RRS feed

  • Question

  • i use c# make activex control ,and insert in iE.

    The code is:

            public interface INF
                bool OnButtonDblClk( int nflags, int wx, int wy);

    and the C# event ,delegate is :

    public delegate bool ButtonDown( int flags, int wx, int wy);
    public event ButtonDown OnButtonDblClk;

    then in javascript:

    <script for="myComComponent" event="OnButtonDblClk(arg1,arg2,arg3)" language="javascript">

    if there is function OnButtonDblClk in javascript , activex could invoke the function.But when there is no function in javascript would result error in activex even i check the OnButtonDblClk event before invoke the function.The check event is that the event is not null.so is there any way to avoid invoke the function when there is no function in javascript??


    Friday, November 6, 2015 11:10 AM