FP: How to Use The Script Wizard With FrontPageLast reviewed: March 18, 1998Article ID: Q180825 |
The information in this article applies to:
SUMMARY =======You can add Microsoft Visual Basic Scripting Edition (VBScript) or JavaScript code to a Web page by using the Script Wizard. This article presents an overview of how to use the Script Wizard with Microsoft FrontPage.
MORE INFORMATION ================The Script Wizard lets you select objects and associated events, and pick an action that will occur when an event takes place. After you make your selections, the Script Wizard creates the VBScript or JavaScript for you. NOTE: Before you can use the Script Wizard in FrontPage 97, you must install Microsoft Internet Explorer version 3.01 or later. You do not need to install Internet Explorer to use the Script Wizard in FrontPage 98.
Running the Script Wizard
FrontPage 98
FrontPage 97
Components of the Script WizardThe Script Wizard is divided into three panes:
The Event PaneThe Event pane provides a hierarchical view of all of the objects and events on your page. It includes ActiveX Controls and HyperText Markup Language (HTML) forms.
The Action PaneThe Action pane provides a hierarchical view of the actions and properties you can use in the event handler, as well as the global variables and procedures defined for the page. When you double-click an action, the Script Wizard adds that action to the list in the Script pane. When you double-click a property, a dialog box asking you to select a value for the property will appear. The type of dialog box that you will see, and the values that you can select will vary, depending on the type of property you double-clicked. After you have specified a value for a property, the Script Wizard will add that property to the list in the Script pane.
The Script PaneThe Script pane has two views: List view and Code view. You can switch between views by clicking the appropriate option at the bottom of the Script Wizard window. You can use List view to assign simple actions to events or to set property values by using a point-and-click approach. If you want to use the power and full support of the scripting language, you can use Code view to write VBScript or JavaScript code. Using the Script Wizard in List View: If you script multiple actions for any given event, the actions will be executed in the order they appear in the list in the Script pane. You can use the Move Up and Move Down buttons to reorder the actions in the list. To reorder the actions in the list, you can either insert or delete an action:
The Script pane displays the actual script in the default scripting language-- VBScript or JavaScript--that you specified for the page. Click anywhere in the Script pane to edit your script.
Common Use for the Script WizardFollowing are some common uses for the Script Wizard.
Scripting to Link to Another Page
Scripting to Hide or Show a Control
Scripting to "Bring to Front" and "Send to Back"
ARTICLE-ID: Q171673 TITLE : FP97: How to Use Microsoft Forms 2.0 ActiveX Controls ARTICLE-ID: Q180822 TITLE : FP98: How to Use Microsoft Forms 2.0 ActiveX Controls |
Additional query words: fpedit jscript vbscript ie 97 98
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |