1140 Part IV . JavaScript Core Language Reference (Free web design)

1140 Part IV . JavaScript Core Language Reference IE/Windows Objects NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . Microsoft prides itself on the integration between Web browser functionality and the Windows operating system. The linkage between browser and OS is most appar ent in IE s facilities for accessing ActiveX objects. Microsoft has fashioned several such objects for access to scripters again, provided the deployment is intended only for Windows versions of Internet Explorer. Some objects also exist as a way to expose some Visual Basic Script (VBScript) functionality to JavaScript. Because these objects are more within the realm of Windows and ActiveX programming, the details and quirks of working with them from IE/Windows is best left to other venues. But in case you are not familiar with these facilities, the following discus sions introduce the basic set of IE/Windows objects. You can find more details at the Microsoft Developer Network (MSDN) Web site; in addition, I provide appropri ate URLs for your further exploration. The objects mentioned here are the ActiveXObject, Dictionary, Enumerator, FileSystemObject, and VBArray objects. Microsoft documents these objects as if they are part of the native JScript language. However, you can be sure that they will remain proprietary certainly to Internet Explorer, if not exclusively for Windows- only versions. ActiveXObject ActiveXObject is a generic object that allows your script to open and access what Microsoft sometimes calls automation objects. An automation object is an exe cutable program that might run on the client or be served from a server. This can include local applications, such as applications from the Microsoft Office suite, exe cutable DLLs (dynamic-link libraries), and so on. Use the constructor for the ActiveXObjectto obtain a reference to the object according to the following syntax: var objRef = new ActiveXObject(appName.className[, remoteServerName]) This JScript syntax is the equivalent of the VBScript CreateObject()method. You need to know a bit about Windows programming to determine the application name and the classes or types available for that application. For example, to obtain a reference to an Excel worksheet, use this constructor: var mySheet = new ActiveXObject( Excel.Sheet ) Once you have a reference to the desired object, you must also know the names of the properties and methods of the object you ll be addressing. You can access much of this information via Microsoft s developer tools, such as Visual InterDev or the tools that come with Visual Basic. These tools enable you to query an object to discover its properties and methods. Unfortunately, an ActiveXObject s proper ties are not enumerable through a typical JavaScript for-in property inspector. ActiveXObject
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply