Salve a tutti,
ho provato a creare un oggetto nel seguente modo:
<html>
<head>
<script language="javascript">
var x = new ActiveXObject("ANamespace.AClass");
alert(x.FName());
alert(x.SName());
alert(x.Age);
</script>
</head>
<body>
</body>
</html>
Mi compare l'errore "Il server di automazione non può creare l'oggetto"
invece se procedo nel seguente modo:
<html>
<head>
</head>
<body>
<%
Set x = CreateObject("ANamespace.AClass")
Response.Write x.FName()
Response.Write x.SName()
Response.Write x.Age
%>
</body>
</html>
Riesco a crearlo regolarmente.
Come mai se creo l'oggetto da Javascript non funziona ?

Vi ringrazio anticipatamente per qualsiasi consiglio mi possiate dare.
Modificato da paaol il 10 dicembre 2008 18.05 -