call JavaScript from C# ActiveX

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,

Ive created a C# activex control....

[GUID("...")]
[ProgId("Test.AX")]
public class Test
{
    string Test()
    {
       return "from com component";
    }
}

now when I instantiate this component in js
comp = new activeXObject("Test.AX");

I can call alert(comp.Test()); and a messagebox with the text from the c# dll pops up.

How can I call functions in the other way -> call a function in the javascript file from the dll?

thanks and greets from germany

View the full article
 
Back
Top