HTA - Hypertext Application tutorial - HTA, ActiveXObject, ADO, WScript, WshShell, MSHTA, SQL, script, JavaScript
Use HTAs for rapid testing, early development, and in-house deployment.
This article describes how to create an HTA (Hypertext Application). To illustrate a common scenario, we will open an ADO recordset and display some of it in an HTML table -- with only a few lines of script. We'll be using JavaScript (actually, Microsoft's JScript) because it's a flexible scripting language and web developers are usually quite familiar with it. A little note: Browser compatibility is irrelevant here -- an HTA is executed by a program named MSHTA.Exe, a Microsoft/Windows-specific program.
An HTA (Hypertext Application) is basically an HTML file with the added feature that it is not constrained by the browser's scripting "sandbox." It is a "trusted application" so it can access ActiveX objects and launch executables without displaying that irritating warning box popup.
USES:
- Throw together a quick proof-of-concept or a demo to exercise an ActiveX object.
- Provide a "front-end" U/I to set up a complex command-line needed to run command-line utility programs.
- Use as a generic "batch file" tool to perform a sequence of operations but with the ability to accept input interactively and display output.
- Provide a user-friendly U/I to drive such commonly-available application programs as Internet Explorer, Excel, Access, etc.; a way to use the COM-exposed functionality of the application without losing the user in the complex U/I of the program itself.
An HTA (Hypertext Application) is basically an HTML file with the added feature that it is not constrained by the browser's scripting "sandbox." It is a "trusted application" so it can access ActiveX objects and launch executables without displaying that irritating warning box popup.
USES:
- Throw together a quick proof-of-concept or a demo to exercise an ActiveX object.
- Provide a "front-end" U/I to set up a complex command-line needed to run command-line utility programs.
- Use as a generic "batch file" tool to perform a sequence of operations but with the ability to accept input interactively and display output.
- Provide a user-friendly U/I to drive such commonly-available application programs as Internet Explorer, Excel, Access, etc.; a way to use the COM-exposed functionality of the application without losing the user in the complex U/I of the program itself.
ليست هناك تعليقات:
إرسال تعليق