Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveXObject constructor list of parameters

ActiveXObject() constructor support different types of parameters as follows:

new ActiveXObject("Msxml2.DOMDocument"); 
new ActiveXObject("Msxml2.XSLTemplate"); 
new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
new ActiveXObject("Msxml2.DOMDocument.6.0"); 
new ActiveXObject("Microsoft.XMLHTTP"); 
new ActiveXObject("Microsoft.XMLDOM"); 
new ActiveXObject("Excel.Application");
new ActiveXObject("Word.Application");
new ActiveXObject("Excel.Sheet");

Where would I find these parameters(activexobject constructor)?

from this link, I found some information as follows

new ActiveXObject(class[, servername]);

class uses the syntax library.object where library is the name of the application (e.g., Word, Excel) or library containing the object, and object is the type or class of the object to create. servername (an optional argument) specifies the name of the server on which the object resides.

like image 355
Premraj Avatar asked Dec 24 '22 19:12

Premraj


1 Answers

ActiveX objects are binary extensions to Internet Explorer that (generally) add features that would otherwise not be supported by the browser.

When you install an ActiveX control, it modifies the system's Registry to register various interfaces and entry points so that the control is properly launched when a webpage asks for it.

ActiveX controls are generally created to extend the browser in specific ways; that is, they're designed to solve problems that may not be useful for learning JavaScript. Microsoft doesn't document the internal structure of many ActiveX controls, but you may be able to find information by searching the MSDN library for the name of the object you're interested in.

For example, here are the results of a search for Msxml2.DOMDocument.

As you may notice, this list isn't terribly useful.

You may find better luck searching for tutorials that teach web concepts by focusing on the feature you're interested in, such as XML.

(Also, you should be aware that ActiveX controls are supported only by Internet Explorer...and that IE is soon to be replaced by the Microsoft Edge browser that doesn't not support ActiveX controls. Thus, it might be better to focus on cross-browser solutions rather than proprietary ones.)

Hope this helps...

-- Lance

like image 94
Lance Leonard Avatar answered Dec 28 '22 10:12

Lance Leonard