Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Querying ActiveX Objects Parameters,etc. using Javascript

hello,

there's a code in javascript to list all things about an element:

var element = document.getElementById("button");
for(var list in element){
document.writeln(list);
}

this piece of code runs on both IE and Mozilla-based browsers.

however, if I replace the element to an ActiveX object ( for IE only )

var obj= = new ActiveXObject("Microsoft.XMLHTTP");
for(var list in obj){
document.writeln(list);
}

it no longer works. I dunno why.

regards,
katips :confused:
[587 byte] By [katipunero] at [2007-11-11 6:33:46]
# 1 Re: Querying ActiveX Objects Parameters,etc. using Javascript
the ActiveXObject is not a native javascript Object() so recursing it's property is not defined as such.

MS is very good at providing documentation though, so you should be able to find all the properties and methods of any ActiveXObject you can create.
KC-Luck at 2007-11-11 23:35:15 >