Creating a COM object in JavaScript

Hello

I have created a component in C++ using COM. I need to use this component in javascript. But I am getting an error message as shown below:

Error:

Automation Server cannot create object

Code Snapshot

<html>

<head>

<meta http-equiv="Content-Type"

content="text/html; charset=iso-8859-1">

<meta name="GENERATOR" content="Microsoft FrontPage Express2.0">

<title></title>

<STYLE TYPE ="text/css">

</STYLE>

<script language="javascript">

function function1()

{

var myObj = new ActiveXObject("ToolBand.ToolBandObj");

myObj.OnNag("fg"); // Component's Function

}

</script>

</head>

<body bgcolor="#FFD7OO" text="#8OOO8O" id="theBody">

<button name="i" onclick = "function1();">Hello</button>

</body>

</html>

Here "ToolBand.ToolBandObj" is a C++ COM Object.

Please kindly let me know how to create an instance of COM object in JavaScript

Regards

Senthil

[1083 byte] By [DevSenthila] at [2007-11-27 11:23:46]
# 1

Wrong forum. Java != Javascript, despite four common letters.

CeciNEstPasUnProgrammeura at 2007-7-29 15:53:37 > top of Java-index,Java Essentials,Java Programming...
# 2

Please let me know under which section I need to post this

DevSenthila at 2007-7-29 15:53:37 > top of Java-index,Java Essentials,Java Programming...
# 3

> Please let me know under which section I need to post

> this

Not in any section on these fora.

Try googling for javascript forum.

dwga at 2007-7-29 15:53:37 > top of Java-index,Java Essentials,Java Programming...