Develop Activex to call from JScript

I want to develop an ActiveX so that I can access it from the JScript. I know there is a method CreateActivex() in JScript.

Do I have to add special interfaces for my activex, in order to use this method.

Thanks

[233 byte] By [smk_k] at [2008-2-2]
# 1

Hi,

There are no special interfaces needed on an activex control to allow the control to be created from script. It shoudl be creatable both using the <OBJECT> tag and from script.

Thanks
-Dave

DaveMassy at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...
# 2

The only interface required is IDispatch, which is so ubiquitous it goes without saying.

Don't forget that COM objects and ActiveX controls must be registered as Safe for Scripting or IE will complain when you try to instantiate the control from script in an HTML page. It's easy to do this in the registry, but a robust control will also implement IObjectSafety to encode the author's intent.

And, if you plan to use the control widely or distribute it publicly, you certainly should sign the control after you have finished developing it. For more information, see Designing Secure ActiveX Controls (MSDN).

JohnSudds at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...