Click to See Complete Forum and Search --> : COM - JavaScript


nfireman
June 9th, 2005, 06:26 AM
How can I connect to a COM object from a JavaScript script written in an html page. :confused:

PeejAvery
June 9th, 2005, 05:32 PM
What specific COM object are you thinking?

nfireman
June 14th, 2005, 12:58 PM
Thanks but I found the answer and it is rather simple, all I have to do
is the following

var myVariable;
myVariable = new ActiveXObject("ServerName.ClassName");

All you need to do is replace the "ServerName" with your com Server Name, same for class name and that's it, you get a reference to your COM object with all its methods ready for use.