Dialog functions are those that allow the user interact with the Web page. These functions include the ability to display alert, confirmation and prompt dialog boxes. Since JavaScript 1.0, the alert(), confirm() and prompt() methods have been important tools for communicating with the user.
JavaScript is the Web scripting standard and the script language of JavaScript Vision. However, much of the "cross-browser" code that is created is really a single script that contains browser-specific code for both browsers. Programmers often use browser-specific features in a cross-browser script. These dialog box functions simply extend the features of Internet Explorer by using VBScript for added functionality.
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="JS_Vision_Dialog.js"></SCRIPT>
<SCRIPT TYPE="text/vbscript" LANGUAGE="VBScript" SRC="JS_Vision_Dialog.vbs"></SCRIPT>
The inspiration for these functions came from the Webreference Dynamic HTML Lab column entitled JavaScript Enhancement with VBScript, inter-language communication for Explorer. I encourage all who are going to use these dialog box functions to read this article.
These functions can be used with any browser, any version. The functions will work on all browsers, but the display will be browser-specific, i.e., the VBScript dialogs will display only in Internet Explorer 4+. No knowledge of VBScript is necessary.
For more information on the SRC
attribute of the SCRIPT
tag, see JavaScript Vision
Frequently Asked Questions.
Copyright © 2000 Roaring Fork Software. All rights reserved.