Witam!
Mam kontrolkę ActiveX napisaną w VB.NET, która implementuje poniższy interface:
Public Interface IConnector
Function Logon(ByVal pServer As String, ByVal pUsername As String, ByVal pPassword As String) As String
Event NewEvent(ByVal pEventArgument As String)
End Interface
Kontrolka jest skompilowana jako DLL i jest osadzona w stronie WWW:
<html>
<head>
<script language="javascript">
var system = new ActiveXObject("ActiveXTest3.ActiveXTest3.CConnector");
function Logon()
{
alert(system.logon("server","user","pass"));
}
</script>
</head>
<body onload = "javascript:Logon()">
</body>
</html>
Pytanie brzmi: jak mogę obsłużyć w stronie WWW zdarzenie NewEvent z kontrolki ActiveX.
Dziękuję!