How to make ActiveX Callback functioning

I cannot get the office name control to call back to a jscript eventhandler. (Office 12 installed in my case)
The page works well if just rendered in a browser, hoever it does not function when run in a gadget.
The thing that fails is that the eventhandler is never called when a buddy chnages state.
The callback function is registered by calling the OnStateChange function as shown below.

is such a callback not allowed (or only with additional magic )

I'd also appriciate suggestions for debugging this as I am not quite sure how to approach this

Jos

Answer this question

How to make ActiveX Callback functioning

  • el-chema

    It's a stab in the dark, but you could try adding a Mark of the Web to the HTML to change the security level. I've used that in the past on IE pages to allow ActiveX components to run on a local machine.

    Or try setting up the call back in HTML:

    <script language="javascript" type="text/javascript" for="UCControlObj" event="OnStatusChange">
    UCOnStatusChange();
    </script>


  • NewC&amp;#35;

    no that is not working either.

    MotW only allows me to pusch a page to less priviliges and I seem to be missing some permission.

    The ActiveX control gets instantiated,
    the callback function gets registered without throwing an exeption

    but no callback is ever done.

    I was looking for a bit of script to detect IE7/Gadgets Zone and protected mode from javascript.(have not found it yet)
    That might help pin down the problem.

    Tia, Jos



  • tamarind

    Could be a security issue, instead of testing in a browser, run it as an HTML Application. ie rename it to <filename>.HTA and run it. HTA's run with similar security to Sidebar.

  • Jakein2006

    Indeed,
    That shows the same effects I see when run as gadget.

    Do you have suggestions how to find where the security (if it is indeed that) is restrictive and how it could be adjusted

    Jos



  • How to make ActiveX Callback functioning