Wonderful!, It works fine!!
And now..., have you one example using javascript??, I have the same problem, methods works but no events:
JavaScript:
<html>
<head>
<meta charset="UTF-8">
<object name="BSAClient" id="BSAClient" classid="clsid:90bfaaff-4317-4c22-ba36-c7563c03c0a2" /></object>
<script language='JavaScript'>
//Se arranca la aplicacion de BLustar
function ejecutaBS() {
BSAClient.LaunchBSA();
}
//Se inicializa la conexion con Blustar ya arrancado
function inicializaConexion() {
resultadoInicializar = BSAClient.Initialize();
if (resultadoInicializar)
{
alert("Conexion contra BSA establecida correctamente");
}else{
alert("Fallo en la conexion contra BSA");
}
}
//Se cierra la conexion con BLustar
function cerrarBS() {
BSAClient.CloseApplication();
}
</script>
<SCRIPT LANGUAGE="javascript" FOR="BSAClient" EVENT="OnApplicationReadyForInitialization()">
<!--
alert("Aplicacion preparada para inicializacion");
//-->
</SCRIPT>
</head>
<body>
<form name='formPrincipal'>
<table border='1' width='500px' align='center'>
<tr>
<td>
Ejecutar aplicación:
</td>
<td>
<input type='button' name='ejecutaBS' value='Ejecuta BS' onClick='javascript:ejecutaBS();'>
</td>
</tr>
<tr>
<td>
Inicializar conexión :
</td>
<td>
<input type='button' name='ejecutaBS' value='Ejecuta BS' onClick='javascript:inicializaConexion();'>
</td>
</tr>
<tr>
<td>
Cerrar aplicación Blustar:
</td>
<td>
<input type='button' name='cerrarBS' value='Cerrar BS' onClick='javascript:cerrarBS();'>
</td>
</tr>
</table>
</form>
</body>
</html>
I think the event is correctly called. Whre I wrote one incorrect event name (like "thisEventDoesnExist") nothing happens, but when I write de correct event name (like the example "OnApplicationReadyForInitialization") the Internet Explorer 11 (or IE9 or IE8) gets crash. The log error es:
Firma con problemas:
Nombre del evento de problema: CLR20r3
Firma del problema 01: iexplore.exe
Firma del problema 02: 11.0.9600.17728
Firma del problema 03: 55024724
Firma del problema 04: mscorlib
Firma del problema 05: 4.0.30319.17929
Firma del problema 06: 4ffa561c
Firma del problema 07: 10d1
Firma del problema 08: 1eb
Firma del problema 09: System.Reflection.Target
Versión del sistema operativo: 6.1.7601.2.1.0.256.48
Id. de configuración regional: 3082
Información adicional 1: 0a9e
Información adicional 2: 0a9e372d3b4ad19135b953a78882e789
Información adicional 3: 0a9e
Información adicional 4: 0a9e372d3b4ad19135b953a78882e789
Lea nuestra declaración de privacidad en línea:
Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad sin conexión:
C:\Windows\system32\es-ES\erofflps.txt
Thanks a lot whosrdaddy.