?_{˙˙˙˙kbl!0ڈ2!Copyright Š 1996 Microsoft Corp.  htmsw.cnt /&;)z4˙˙ú˙˙˙˙|AWBTREEÖÖ|AWDATAÁŐ|CONTEXT4ç|CTXOMAP“š|FONTҡ|KWBTREE’˝|KWDATAş|KWMAP{˝|SYSTEM|TOPICŞ|TTLBTREEß|bm0cď|bm1:R|bm101|bm11ţ|bm12Ŕ|bm2vŠ|bm3ž|bm4KŐ|bm5‘ę|bm6(|bm7é|bm8Ş|bm9x(łł˙˙˙˙ U$˙˙˙˙a1L ˙˙˙˙˙˙˙˙a/ Using the Script Wizard in List ViewN' Ż' €N€6˜˜˜˛€‚˙Using the Script Wizard in List Viewe aX €€€4˜˜˛Č.AL(`UsingtheScriptWizardinListViewC',0,`',`')€‰‚˙See Also'Ż;$ €€˜€‚˙3n/ .€ €4˜˜°€†"€‚˙8;Ś' €"€6˜˜˜°€‚˙The Event PaneŇnżG \€Ľ€4˜˜°€â:´n‰âH˛"‰â3ąf‰€€‚‚âYŞ2÷‰‚˙The Event pane provides a hierarchical view of all the objects and events that you can script. These include ActiveX controls and form fields that you’ve inserted into your page.In the hierarchy, objects are listed in alphabetical order by ID name. Under each object are the events that you can script. The icons represent different types of events and objects.When you click an event, the Script Wizard displays that event handler in the Script pane.9Śř' €$€6˜˜˜°€‚˙The Action Pane,˙ż$- (€˙€4˜˜°€â^’xo‰‚˙The 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. The icons represent different types of actions, properties, and objects.–iřş- *€Ň€ vtŒČ°R‚H€ƒ€‚˙ˇWhen you double-click an action, the Script Wizard adds that action to the list in the Script pane.ă$Ď2 2€Ç€t˜Č°R€ƒ€€€‚˙ˇWhen you double-click a property, you’ll see a dialog box prompting you to choose a value for the property. The type of dialog box you see, and the values you can select, depend on the type of property you double-click.Ľyşt, (€ň€4ŒČ°€€€‚˙Once you’ve specified a value for the property, the Script Wizard adds that property to the list in the Script pane.'Ď›$ €€˜€‚˙ĚtŁ< F€™€4Œ˜°€ €€€€ €€ €‚˙Tip You can quickly script a jump to another page, change a control’s front to back layering, or hide or show a control, by double-clicking the Go To Page… or Hide Control/Show Control actions.9›Ü' €$€6˜˜˜°€‚˙The Script PanežŁö | ƀ=€4˜˜°€€€€ €€ €€ €€ €€ €€ €‚€€€€€€€€€€€€€ €‚˙You can script multiple actions for any given event, and they’ll be executed in the order they appear in the list in the Script pane. Use the Up and Down Arrow buttons to reorder the actions in the list, and the Insert Action and Delete Action buttons to add or remove actions from the list. If you specified a property, you can edit it by selecting that property and clicking the Modify Value button.In the Event pane, if you click an event handler that’s associated with a custom action — for example, a script that contains an “if” statement — you’ll see a message in the Script pane advising you to click Code view to edit the action.9Ü/ 9 @€€4˜˜°€€ €€€€ €‚˙When you click OK or close the Script Wizard, the event handlers you create, and the global variables and procedures you define, are stored as VBScript or JavaScript in your page. To discard any changes you don’t want to take effect, click Cancel.U$ö „ 1Ł˙˙˙˙˙˙˙˙„ 7ľFUsing the Script Wizard in Code ViewN'/ Ň ' €N€6˜˜˜˛€‚˙Using the Script Wizard in Code Viewe „ 7X €€€4˜˜˛Č.AL(`UsingtheScriptWizardinCodeViewC',0,`',`')€‰‚˙See Also'Ň ^$ €€˜€‚˙37‘/ .€ €4˜˜°€†"€‚˙8^É' €"€6˜˜˜°€‚˙The Event PaneÄ‘Ů@@ N€‰€4˜˜°€â:´n‰âH˛"‰â3ąf‰€€‚‚˙The Event pane provides a hierarchical view of all the objects and events that you can script. These include ActiveX controls and form fields that you’ve inserted into your page.In the hierarchy, objects are listed in alphabetical order ÉŮ@/ by ID name; under each object are the events that you can script. The icons represent different types of objects and events. When you click an event, the script for that event appears in the Script pane.9ÉA' €$€6˜˜˜°€‚˙The Action Pane/Ů@AB- (€€4˜˜°€â^’xo‰‚˙The Action pane provides a hierarchical view of all the actions, properties, variables, and procedures that can be invoked; each is represented by a different icon. When you double-click an action, the script for that action appears in the Script pane. ĚAIC< F€™€4Œ˜°€ €€€€ €€ €‚˙Tip You can quickly script a jump to another page, change a control’s front to back layering, or hide or show a control, by double-clicking the Go To Page… or Hide Control/Show Control actions.9AB‚C' €$€6˜˜˜°€‚˙The Script PaneQICÓD3 4€=€4˜˜°€€ €€ €‚˙The Script pane displays the actual script in the default scripting language you specified for the page, either VBScript or JavaScript. Click an insertion point to edit the script. The Script Wizard automatically adds end sub or } end-of-procedure marks to any script you create.Św‚CyE/ .€î€4Œ˜°€ €âqꉂ˙Tip In the Script pane, you can Cut, Copy, or Paste script, or change the display Font, using the shortcut menu.<ÓDľF9 @€€4˜˜°€€ €€€€ €‚˙When you click OK or close the Script Wizard, the scripts you create, and the global variables and procedures you define, are stored as VBScript or JavaScript in your page. To discard any script or changes you don’t want to take effect, click Cancel.OyEG1 ˙˙˙˙˙˙˙˙G­G…JNew Global Variable Dialog BoxH!ľFLG' €B€6˜˜˜˛€‚˙New Global Variable Dialog Boxa G­GT x€€4˜˜˛Č*AL(`NewGlobalVariableDialogBoxC',0,`',`')€‰‚˙See Also'LGÔG$ €€˜€‚˙ąL­G…Je ˜€™€4˜˜°€€€€ €âqź‰âŔ!o ‰âˆPC,‰‚€€‚€ €€ €€ €€ €‚˙This dialog box appears when you’re working in the Action pane of the Script Wizard, and you click New Global Variable on the shortcut menu. Use this dialog box to add a new global variable to HTML for the active Web page.Type the name of the global variable you want to add. You can include subscripts or an initial value in the proper syntax for the script language you’re using (either VBScript or JavaScript).When you click OK, that variable is inserted at the beginning of HTML, in the form dim variable-name for VBScript or var variable-name for JavaScript.PÔGŐJ1ü˙˙˙˙˙˙˙˙ŐJ€KKNEdit Global Variable Dialog BoxI"…JK' €D€6˜˜˜˛€‚˙Edit Global Variable Dialog Boxb ŐJ€KU z€€4˜˜˛Č+AL(`EditGlobalVariableDialogBoxC',0,`',`')€‰‚˙See Also'K§K$ €€˜€‚˙¤?€KKNe ˜€€4˜˜°€€€€ €âqź‰âŔ!o ‰âˆPC,‰‚€€‚€ €€ €€ €€ €‚˙This dialog box appears when you’re working in the Action pane of the Script Wizard, and you click Edit Global Variable on the shortcut menu. Use this dialog box to edit a global variable to HTML for the active Web page.Type the new name for the global variable. You can include subscripts or an initial value in the proper syntax for the script language you’re using (either VBScript or JavaScript).When you click OK, that variable is inserted at the beginning of HTML, in the form dim variable-name for VBScript or var variable-name for JavaScript.M§K˜N1Ő˙˙˙˙˙˙˙˙˜N=O ŔText String Value Dialog BoxFKNŢN' €>€6˜˜˜°€‚˙Text String Value Dialog Box_ ˜N=OR t€€4˜˜˛Č(AL(`TextStringValueDialogBoxC',0,`',`')€‰‚˙See Also'ŢNdO$ €€˜€‚˙§=O( €˙€4˜˜°€‚‚˙This example of a Text String Value dialog box asks you to insert a text string for the GoTo Page action. You can edOKNither type in a known value, such as the URL for the page associated with this particular event, or click the Custom or Color buttons to assign a value. When the value is inserted into the script, quotation marks are automatically added to the string. For example:ĽOdOźV#|€žŠ ­ . €€ °€ ‚˙€$€ °‚˙€8€ °‚˙˙˙What you enter:Result:Result for INPUT, SELECT, TEXTAREA, or FORM eventv2‚n#ʀР­ . €€ °˙ €€(vŞ€‚˙€€(vŞ‚˙€ €(vŞ‚˙˙˙ś5źč‚#ҀjŠ ­ . €€(vŞ˙€€$Œ°€‚˙,€€$Œ°€€€€‚˙,€D€$Œ°€€€€‚˙˙˙Sample Text“Sample Text”‘Sample Text’'2‚ƒ$ €€˜€‚˙÷Äč‚„3 4€‰€4˜˜°€€€€€‚˙You receive an error message if you enter an invalid text string. This can happen because of a single quotation mark (‘) or a double quotation mark (‘’) in the value you typed. For example:§Pƒ­„W#~€ ł   €€ °€ ‚˙€&€ °‚˙€:€ °‚˙˙˙What you enter:Result:Result for INPUT, SELECT, TEXTAREA, or FORM eventv„#…n#Ź€ł   €€ °˙ €€(vŞ€‚˙€€(vŞ‚˙€ €(vŞ‚˙˙˙ô_­„†•#ú€žł   €€(vŞ˙&€€$Œ°€€€‚˙:€.€$Œ°€€€€€€‚‚˙:€t€$Œ°€€€€€€‚‚˙˙˙It’s the Internet“It’s the Internet”(Valid)‘It’s the Internet’(Invalid)ói#… ‡Š#ä€Ňł   2€€$Œ°€€€€€‚˙:€6€$Œ°€€€€€€‚‚˙:€†€$Œ°€€€€€€‚‚˙˙˙It is the “Internet”“It is the “Internet””(Invalid)‘It is the “Internet”’(Valid)'†1‡$ €€˜€‚˙d= ‡•ˆ' €{€4˜˜°€‚˙If you are scripting an INPUT, TEXTAREA, SELECT or FORM element, then the problem is the presence of a single quotation mark in your value. In all other cases, the problem is the presence of a double quotation mark in your value. The solution to this problem depends on the scripting language you are working with.;1‡Đˆ' €(€6˜˜˜°€ ‚˙VBScript SolutionqD•ˆAŠ- (€‰€4˜˜°€€€‚˙If you are using VBScript, the solution is to double the number of quotation marks. If you are typing a double quotation mark in your text string which is causing problems, turn it into two (") characters: (""). If you are typing a single quotation mark which is causing problems, turn it into two (') characters: ('’).l)Ј­ŠC#V€Ręh €€ °€ ‚˙€$€ °‚˙˙˙Invalid result:What you should type:^AŠ ‹X#€€ ęh €€ °˙ €€(vŞ€‚˙€€(vŞ‚˙˙˙”/­ŠŸ‹e#š€^ęh €€(vŞ˙,€€$Œ°€€€€‚˙ €2€$Œ°€€‚˙˙˙‘It’s the InternetIt’’s the Internetš: ‹9Œ`#€tęh 8€€$Œ°€€€€€€‚˙,€<€$Œ°€€€€‚˙˙˙“It is the “Internet””It is the “”Internet””'Ÿ‹`Œ$ €€˜€‚˙=9ŒŒ' €,€6˜˜˜°€ ‚˙JavaScript Solution+`ŒČ' € €4˜˜°€‚˙If you are using JavaScript, you can place a backslash character in front of the problem character. For example, if a double quotation mark is causing problems, change it to (\"). Similarly, if a single quotation mark is causing problems, change it to (\').l)Œ4ŽC#V€Ręh €€ °€ ‚˙€$€ °‚˙˙˙Invalid result:What you should type:^ȍ’ŽX#€€ ęh €€ °˙ €€(vŞ€‚˙€€(vŞ‚˙˙˙24Ž/k#Ś€dęh €€(vŞ˙8€€$Œ°€€€€€€‚˙ €8€$Œ°€€‚˙˙˙‘It’s the Internet’It\’s the Internetš:’ŽÉ`#€tęh 8€€$Œ°€€€€€€‚˙,€<€$Œ°€€€€‚˙˙˙“It is the “Internet””It is the \”Internet\”$/ Ŕ" €€€˙ɏ ŔKNHɏTŔ1Ě˙˙˙˙˙˙˙˙TŔđŔ‹ĂCustom Value Dialog BoxA Ŕ•Ŕ' €4€6˜˜˜°€‚˙Custom Value Dialog Box[ TŔđŔN l€€4˜˜˛Č$AL(`CustomValueDialogBoxC',0,`',`')€‰‚˙See Also'•ŔÁ$ €€˜€‚˙tBđŔ‹Ă2 2€‡€4˜˜°€†"€‚‚‚˙This dialog box appears when clicking Custom from the previous Go To Page Text String Value dialog box. If you have a pre-defined variable, property value or value that is not a simple constant, you can enter it here. The Custom Value dialog box is the default Value dialog box and appears when the selected property is not categorized as a text string, number, Boolean value, or enumeration. You can also bring this dialog box up by clicking the Custom option in one of the Value dialog boxes as previously displayed, or click the Modify Value option in the Script pane. AÁĚĂ1ü˙˙˙˙˙˙˙˙ĚĂ[Ä&ÉColor Dialog Box:‹ĂÄ' €&€6˜˜˜°€‚˙Color Dialog BoxU ĚĂ[ÄH `€€4˜˜˛ČAL(`ColorDialogBoxC',0,`',`')€‰‚˙See Also'ĂÄ$ €€˜€‚˙Ž[Ä0Ç/ ,€˙€4˜˜°€‚‚â3ąf‰‚˙Clicking the Color button displays the standard Windows color picker window. Selecting a color creates a value in the Script pane depending on which property you are modifying. If you are modifying a Window object property, the value is displayed according to HTML rules in RRGGBB format as hex constants with the # symbol as the prefix. If you are modifying a control property and reaching the Color dialog box directly or by choosing Color from the Number Value dialog box, the value is interpreted as an OLE color in BBGGRR format as hex constants, with the &H symbol as the prefix for VBScript, and the 0x prefix for JavaScript.ö˜‚Ä&É^ Š€1€4˜˜°€€ €€€€€€€€€‚€€€€€€€€‚˙Note that the Color button is available for many properties and not just for changing the foreground or background colors of an object. For example, if you change the value of the Caption property from text such as “Push” to the color red, the actual text “#FF0000” is placed in your control rather than the color red.HTML-named colors such as “red” or “white” are not supported values.H0ÇnÉ1H˙˙˙˙˙˙˙˙nÉ Ę!ĚNumber Value Dialog BoxA&ÉŻÉ' €4€6˜˜˜°€‚˙Number Value Dialog Box[ nÉ ĘN l€€4˜˜˛Č$AL(`NumberValueDialogBoxC',0,`',`')€‰‚˙See Also'ŻÉ1Ę$ €€˜€‚˙đ¸ Ę!Ě8 >€s€4˜˜°€†"€‚€ €‚‚˙This example of a Number Value dialog box asks you to insert a number for the Layout1 DrawBuffer property. Only valid decimal, hexadecimal, or octal numbers in the syntax of the current scripting language may be entered in this dialog box. If an invalid number is entered, an error message appears.The Custom button, from which you can assign a single constant value or a variable assignment, is also available from this dialog box.I1ĘjĚ1Ç˙˙˙˙˙˙˙˙jĚ͞ÎBoolean Value Dialog BoxB!ĚŹĚ' €6€6˜˜˜°€‚˙Boolean Value Dialog Box\ jĚÍO n€€4˜˜˛Č%AL(`BooleanValueDialogBoxC',0,`',`')€‰‚˙See Also'ŹĚ/Í$ €€˜€‚˙o+͞ÎD V€Y€4˜˜°€†"€‚€ €€ €€ €‚‚˙This example of a Boolean Value dialog box provides option buttons from which to choose the Boolean values True or False for the Label1 Enabled property.The Custom button, from which you can assign a single constant value or a variable assignment, is also available from this dialog box.M/ÍëÎ1•˙˙˙˙˙˙˙˙ ëΑĎ(Enumeration Value Dialog BoxFžÎ1Ď' €>€6˜˜˜°€‚˙Enumeration Value Dialog Box` ëΑĎS v€€4˜˜˛Č)AL(`EnumerationValueDialogBoxC',0,`',`')€‰‚˙See Also'1ϸĎ$ €€˜€‚˙d&‘Ď(> J€O€4˜˜°€†"€‚€ €€ ‚€‚˙This ex¸Ď(žÎample of an Enumeration Value dialog box provides a list box of integer values from which to choose the Label1 PicturePosition property value. The Custom button, from which you can assign a single constant value or a variable assignment, is also available from this dialog box.9¸Ďa1Ę˙˙˙˙˙˙˙˙ a“,Glossary2 (“' €€6˜˜˜˛€‚˙Glossary)aź& €€4˜˜°€‚˙-“é' € €6˜˜˜°€ ‚˙A-C8 ź!, (€€4˜˜°â3ąf€‰‚˙control-éN' € €6˜˜˜°€ ‚˙D-FY!§< H€:€4˜˜°â:´n€‰€ ‚âYŞ2÷€‰€ ‚˙eventevent handler-NÔ' € €6˜˜˜°€ ‚˙G-MZ§.< H€<€4˜˜°âŔ!o €‰€ ‚âˆPC,€‰€ ‚˙global variableHTML-Ô[' € €6˜˜˜°€ ‚˙N-R9 .”, (€€4˜˜°â^’xo€‰‚˙property-[Á' € €6˜˜˜°€ ‚˙S-Zk%”,F \€J€4˜˜°âH˛"€‰€ ‚âqꀉ€ ‚⚢˘ł€‰‚˙scriptshortcut menutag4Á`1P˙˙˙˙˙˙˙˙ ˙˙˙˙`|tag-,, &€€4˜˜°€ €‚‚‚˙tagEmbedded between angle brackets in HTML text to add character or paragraph formatting to the text. Web browsers display text and graphic elements based on the tags an author uses. The tag itself is not displayed by the browser.For example, the textY&`ć3 6€L€t˜˜˛ř€€ €€ €‚˙Make this text look boldL&2& €L€4˜˜°€‚˙is displayed this way by a browser:Jć|- *€:€t˜˜˛ř€€ €‚˙Make this text look bold82´1Í˙˙˙˙˙˙˙˙ ˙˙˙˙´Icontrol1 |ĺ' €€6˜˜˜°€ ‚˙controld<´I( €y€4˜˜°€‚‚˙An ActiveX Control, Java applet, plug-in, PowerPoint animation, or form field that you have inserted in your page.Controls have their own set of recognized properties and events. You use controls to receive user input, display output, and trigger event procedures. You can manipulate most controls using methods.6ĺ1˙˙˙˙˙˙˙˙ ˙˙˙˙d event/IŽ' €€6˜˜˜°€ ‚˙eventśd ' €€4˜˜°€‚˙An occurrence, often initiated by the user, to which a program can respond. A key press, button push, and mouse movement are typical events.@ޤ 1ů˙˙˙˙˙˙˙˙˙˙˙˙¤ ] global variable9d Ý ' €$€6˜˜˜°€ ‚˙global variable€Z¤ ] & €´€4˜˜°€‚˙A variable whose value can be accessed and modified by any event handler on a Web site.9Ý – 1F˙˙˙˙˙˙˙˙˙˙˙˙– Ł property2 ] Č ' €€6˜˜˜°€ ‚˙propertyŰŽ– Ł - (€]€4˜˜°€€€‚˙An attribute of an object that you set to define one of the object’s characteristics (such as size or color) or an aspect of its behavior (such as whether it is hidden).7Č Ú 13˙˙˙˙˙˙˙˙˙˙˙˙Ú Ö script0 Ł  ' €€6˜˜˜°€ ‚˙scriptĚĽÚ Ö ' €K€4˜˜°€‚˙In FrontPage terminology, code written in VBScript or JavaScript. Inserted in a page, a script consists of a set of instructions that connect events with actions.5  1¤˙˙˙˙˙˙˙˙˙˙˙˙ zHTML.Ö 9 ' €€6˜˜˜°€ ‚˙HTMLA z' €5€4˜˜°€‚˙Hypertext Markup Language. A system of marking up, or tagging, a document so it can be published on the World Wide Web. Documents prepared in HTML include reference graphics and formatting tags. You use a Web browser (such as Microsoft Internet Explorer) to view these documents.> 9 ¸1Ž˙˙˙˙˙˙˙˙˙˙˙˙¸@shortcut menu7zď' € €6˜˜˜°€ ‚˙shortcut menuň¸@' €ĺ€4˜˜°€‚˙A list of commands that is displayed when you click the right mouse button. Shortcut menus provide quick access to frequently used commands that are also available from the main menu bar. The commands listed depend on the object you ď@zclick.> ďR@1p˙˙˙˙˙˙˙˙˙˙˙˙R@Bevent handler7@‰@' € €6˜˜˜°€ ‚˙event handler!ßR@ŞAB R€ż€4˜˜°€€ €€ € €€ €€ €‚˙Code that is executed when a particular event occurs. The following example shows the event handler for the Click event associated with CommandButton1. The event handler sets the Caption property of BannerLabel.'‰@ŃA$ €€˜€‚˙‡MŞAXB: D€š€ v0˜°’bŞň;ƒË[Ł€ ƒ‚ƒ‚ƒ‚˙Sub CommandButton1_Click ()BannerLabel.Caption = "New Caption"End Sub)ŃAB& €€4˜˜°€‚˙FXBÇB1h˙˙˙˙˙˙˙˙ÇBdC›GBring to Front Action?BC' €0€6˜Œ˜˛€‚˙Bring to Front Action^ ÇBdCQ r€€4Œ˜˛Č'AL(`isActBringtoFrontActionC',0,`',`')€‰‚˙See Also'C‹C$ €€˜€‚˙”hdCD, (€Đ€4˜˜°€€ €‚˙The Bring to Front action positions a control within an HTML Layout on top of overlapping controls.:‹CYD' €&€6˜˜˜°€ ‚˙List View formatĐD\E3 4€Ą€4˜˜°€€ €€ €‚˙When selecting the Bring to Front action, the name of the control you have selected appears under the Object category in the Script pane and the Bring to Front action appears under the Action category.:YD–E' €&€6˜˜˜°€ ‚˙Code View format¨|\E>F, (€ř€4˜˜°€€ €‚˙When selecting the Bring to Front action in Code View, an action appears in the Script pane with the following command:Z–E˜FC#V€.  ­€€ °€ ‚˙€€ °‚˙˙˙VBScriptJavaScriptF>FŢFB#T€Í €€ °˙ €€(vŞ€‚˙˙˙™1˜FwGh# €b  ­€€(vŞ˙,€€$Œ°€ € € €‚˙&€8€$Œ°€ € €‚˙˙˙call object.ZOrder(0)object.ZOrder(0)$ŢF›G" €€€˙BwGÝG1Ć˙˙˙˙˙˙˙˙ÝGAHÖLGo To Page Action;›GH' €(€6˜Œ˜˛€‚˙Go To Page Action)ÝGAH& €€4Œ˜˛€‚˙'HhH$ €€˜€‚˙ŇAHmI3 4€Ľ€4˜˜°€€ €€ €‚˙The Go To Page action causes the browser to navigate to a specified Web location. Go To Page appears as the first action in the Action pane, at the highest level, and is available when editing any file. :hH§I' €&€6˜˜˜°€ ‚˙List View format‚ImI)K9 @€“€4˜˜°€€ €€ €€ €‚˙When selecting the Go To Page action, the Text String Value dialog box appears. You can type in a URL or customized variable name and select OK. No object is shown under the Object category in the Script pane, and the Go To Page action appears under the Action category, along with the URL assignment in quotation marks.:§IcK' €&€6˜˜˜°€ ‚˙Code View format˝)K L- (€!€4˜˜°€€ €‚˙When selecting the Go To Page action in Code View, an action appears in the Script pane in the following format with empty quotation marks:[cK{L< H€>€ v0˜°’bŞň;ƒË[Ł€ €€ ƒ‚˙Window.location.href = “”[4 LÖL' €h€6˜˜˜˛€‚˙You can type in a URL within the quotation marks.D{LM1p˙˙˙˙˙˙˙˙M´M߁Hide Control Action=ÖLWM' €,€6˜Œ˜˛€‚˙Hide Control Action] M´MP p€€4Œ˜˛Č&AL(`isActHideControlActionC',0,`',`')€‰‚˙See Also'WMŰM$ €€˜€‚˙c7´M>N, (€n€4˜˜°€€ €‚˙The Hide Control action makes a control invisible.:ŰMxN' €&€6˜˜˜°€ ‚˙List View format˙Ě>NwO3 4€™€4˜˜°€€ €€ €‚˙When selecting the Hide Control action, the name of the control you have selected appears under the Object category in the Script pane and the Hide Control action appears under the Action category.:xNąO' €&€6˜˜˜°€ ‚˙Code View format˛…wOo€- (€ €4˜˜°€€ €‚˙When selecting the Hide ControląOo€ÖL action in Code View, an action appears in the Script pane with the following Boolean assignment:ZąOɀC#V€.  ­€€ °€ ‚˙€€ °‚˙˙˙VBScriptJavaScriptFo€B#T€Í €€ °˙ €€(vŞ€‚˙˙˙Ź;ɀťq#˛€v  ­€€(vŞ˙&€€$Œ°€ € €‚˙>€8€$Œ°€ € €€ €€ €‚˙˙˙object.Visible = Falseobject.Visible = false$߁" €€€˙Dť#‚1u˙˙˙˙˙˙˙˙#‚ꂇSend to Back Action=߁`‚' €,€6˜Œ˜˛€‚˙Send to Back Action\ #‚ź‚O n€€4Œ˜˛Č%AL(`isActSendtoBackActionC',0,`',`')€‰‚˙See Also'`‚ă‚$ €€˜€‚˙cź‚rƒ, (€Ć€4˜˜°€€ €‚˙The Send to Back action positions a control within an HTML Layout behind overlapping controls.:ă‚ʃ' €&€6˜˜˜°€ ‚˙List View format˙ĚrƒŤ„3 4€™€4˜˜°€€ €€ €‚˙When selecting the Send to Back action, the name of the control you have selected appears under the Object category in the Script pane and the Send to Back action appears under the Action category.:ʃĺ„' €&€6˜˜˜°€ ‚˙Code View formatşŤ„Ÿ…- (€€4˜˜°€€ €‚˙When using VBScript and selecting the Send to Back action in Code View, an action appears in the Script pane with the following command:Zĺ„ů…C#V€.  ­€€ °€ ‚˙€€ °‚˙˙˙VBScriptJavaScriptFŸ…?†B#T€Í €€ °˙ €€(vŞ€‚˙˙˙2ů…܆k#Ś€d  ­€€(vŞ˙2€€$Œ°€ €€ € €‚˙&€:€$Œ°€ € €‚˙˙˙call object.ZOrder(1)object.ZOrder(1)$?†‡" €€€˙D܆D‡1R˙˙˙˙˙˙˙˙D‡އ˙‹Show Control Action=‡‡' €,€6˜Œ˜˛€‚˙Show Control Action] D‡އP p€€4Œ˜˛Č&AL(`isActShowControlActionC',0,`',`')€‰‚˙See Also'‡ˆ$ €€˜€‚˙a5އfˆ, (€j€4˜˜°€€ €‚˙The Show Control action makes a control visible.:ˆ ˆ' €&€6˜˜˜°€ ‚˙List View format˙ĚfˆŸ‰3 4€™€4˜˜°€€ €€ €‚˙When selecting the Show Control action, the name of the control you have selected appears under the Object category in the Script pane and the Show Control action appears under the Action category.: ˆى' €&€6˜˜˜°€ ‚˙Code View format؟‰žŠ- (€1€4˜˜°€€ €‚˙When using VBScript and selecting the Show Control action in Code View, an action appears in the Script pane with the following Boolean assignment:ZىřŠC#V€.  ­€€ °€ ‚˙€€ °‚˙˙˙VBScriptJavaScriptFžŠ>‹B#T€Í €€ °˙ €€(vŞ€‚˙˙˙š5řŠ؋e#š€j  ­€€(vŞ˙&€€$Œ°€ € €‚˙&€6€$Œ°€ € €‚˙˙˙object.Visible = Trueobject.Visible = true'>‹˙‹$ €€˜€‚˙N؋MŒ1Ľ˙˙˙˙˙˙˙˙MŒóŒgChoose List View or Code ViewG ˙‹”Œ' €@€6˜˜˜˛€‚˙Choose List View or Code View_ MŒóŒR t€€4˜˜°Č(AL(`ChooseListVieworCodeViewC',0,`',`')€‰‚˙See Also'”Œ$ €€˜€‚˙ΧóŒč' €O€4˜˜°€‚˙The Script Wizard 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.gf š€3€ vtŒČ°R‚H€ƒ€€ €â:´n‰â^’xo‰€€€€‚€ƒ€€ €âH˛"‰€€‚˙ˇUse List view to assign simple actions to events, or to set property values, using a “point-and-click” approach.ˇUse Code view to write scripts directly in VBScript or JavaScript — when you want to use the power and full support of the scripting language.H药1\˙˙˙˙˙˙˙˙ŻgŔ’ÁStart the Script WizardAg Ŕ' €4€6˜˜˜˛€‚˙Start the Script WizardŻ Ŕg[ ŻgŔN l€€4˜˜°Č$AL(`StarttheScriptWizardC',0,`',`')€‰‚˙See Also' ŔŽŔ$ €€˜€‚˙źgŔ’ÁH ^€y€ vtŒČ°R‚H€ ƒ€€ €‚€ ƒ€€ €€ €‚˙1Select the ActiveX control or form field you want to script, click the right mouse button, then select the Script Properties.2In the Script dialog box, click Script Wizard.LŽŔŢÁ1l˙˙˙˙˙˙˙˙ŢÁÂźĆEvent and Action Pane IconsE’Á#Â' €<€6˜˜˜˛€‚˙Event and Action Pane Icons^ ŢÁÂQ r€€4˜˜°Č'AL(`EventandActionPaneIconsC',0,`',`')€‰‚˙See Also'#¨Â$ €€˜€‚˙ÂjĂ3 4€€4˜˜°€€ €€ €‚˙In the Script Wizard, each item in the Event and Action panes is preceded by an icon. The following table describes each of these icons.W¨ÂÁĂC#V€(ą €€ °€ ‚˙€€ °‚˙˙˙IconDescriptionFjĂÄB#T€Đ €€ °˙ €€(vŞ€‚˙˙˙‘,ÁĂ˜Äe#š€Zą €€(vŞ˙,€€$Œ°€†"€‚˙ € €$Œ°€€‚˙˙˙An event that hasn’t been scripted.t&Ä ĹN#l€Ną ,€€$Œ°€†"€‚˙€€$Œ°‚˙˙˙An event that has been scripted.^˜ÄjĹN#l€"ą ,€€$Œ°€†"€‚˙€€$Œ°‚˙˙˙An action.g ĹŃĹT#x€(ą ,€€$Œ°€†"€ ‚˙ €€$Œ°â^’xo‰‚˙˙˙A property.^jĹ/ĆN#l€"ą ,€€$Œ°€†"€ ‚˙€€$Œ°‚˙˙˙An object.fŃĹ•ĆN#l€2ą ,€€$Œ°€†"€ ‚˙€€$Œ°‚˙˙˙The window object.'/ĆźĆ$ €€˜€‚˙F•ĆÇ1 ˙˙˙˙˙˙˙˙Ç›ÇwÍCreate Event Handlers?źĆAÇ' €0€6˜˜˜˛€‚˙Create Event HandlersZ Ç›ÇM j€€4˜˜°Č#AL(`CreateEventHandlersC',0,`',`')€‰‚˙See Also'AÇÂÇ$ €€˜€‚˙Šp›ÇkČ9 B€ŕ€ vtŒČ°R‚H€ ƒ€€ €âH˛"‰‚˙1In the Event pane of the Script Wizard, click the Plus sign (+) next to the object you want to script.óŽÂÇ^ÉE X€a€4ŒČ°€â:´n‰†"€†"€€€‚˙The hierarchy expands to display all of the events you can script for that specific object. indicates scripted events; indicates events that haven’t been scripted.ýŁkČ[ËZ ‚€G€ vtŒČ°R‚H€ ƒ€€ €‚€ ƒ€€ €â^’xo‰âŔ!o ‰âYŞ2÷‰€ €‚˙2Click the event you want to script. For example, click MouseOver to specify what happens when the user moves the mouse pointer over the object.3In the Action pane, double-click the action, property, procedure, or variable you want to add to the event handler. For example, double-click BackColor to specify a background color that will change when the user moves the mouse pointer over the object.ś^ÉwÍf š€m€ vtŒř°R‚x€ƒ€€€ăh ˙ń‰€€€€€€‚€ƒ€€€ăÅT‰€ €‚˙ˇIf you’re working in List view and you double-click a property, you’ll see a dialog box asking you to choose a value for the property. The type of dialog box you’ll see, and the values you can select, depend on the type of property you’ve double-clicked.ˇIf you’re working in Code view and you double-click a property or variable, edit the script in the Script pane and type a value for the property or variable.F[Ë˝Í1c˙˙˙˙˙˙˙˙˝ÍVÎpDelete Event Handlers?wÍüÍ' €0€6˜˜˜˛€‚˙Delete Event HandlersZ ˝ÍVÎM j€€4˜˜°Č#AL(`DeleteEventHandlersC',0,`',`')€‰‚˙See AlsoKüÍĄĎC T€€4˜˜°€€ €âYŞ2÷‰‚â:´n‰†"€‚˙In the Event pane of the Script Wizard, click the Plus sign (+) next to the object that contains the event handler you want to delete.The hierarchy expands to display all of the events for that specific object. indicates events that have been scripted.ÁVÎpB R€€ vtŒČ°R‚H€ ƒ€‚€ ƒ€âqꉀ €‚˙1Click the event.2UsinĄĎpwÍg the right mouse button, click to display the shortcut menu, then click Delete Event Handler.HĄĎ¸1‰˙˙˙˙˙˙˙˙¸U­Define Global VariablesApů' €4€6˜˜˜˛€‚˙Define Global Variables\ ¸UO n€€4˜˜°Č%AL(`DefineGlobalVariablesC',0,`',`')€‰‚˙See Also'ů|$ €€˜€‚˙lUčT v€1€ vtŒČ°R‚H€ ƒ€€ €âqꉀ €‚€ ƒ€€ €âŔ!o ‰‚˙1With the pointer in the Action pane of the Script Wizard, using the right mouse button, click to display the shortcut menu, then click New Global Variable.2In the New Global Variable dialog box, type the name of the global variable you want to add to the page.¤~|Œ& €ü€4ŒČ°€‚˙You can include subscripts in VBScript or an initial value in JavaScript, in the proper syntax for that scripting language.'čł$ €€˜€‚˙úľŒ­E X€k€4˜˜°€€ €€ €€ €€ €€ €‚˙When you click OK, the Script Wizard inserts that variable at the beginning of your page in the form dim variable-name for VBScript or var variable-name for JavaScript.Płý1ä˙˙˙˙˙˙˙˙ý¨[Edit or Delete Global VariablesI"­F' €D€6˜˜˜˛€‚˙Edit or Delete Global Variablesb ý¨U z€€4˜˜°Č+AL(`EditorDeleteGlobalVariablesC',0,`',`')€‰‚˙See Also'FĎ$ €€˜€‚˙˘i¨q9 B€Ň€ vtŒČ°R‚H€ ƒ€€ €âŔ!o ‰‚˙1In the Action pane of the Script Wizard, select the global variable you want to edit or delete.˜iĎ / .€Ň€4ŒČ°€ €€ €‚˙Note In JavaScript, only variables defined with the var statement are considered global variables.§hq°? N€Đ€ vtŒČ°R‚H€ ƒ€âqꉀ €€ €‚˙2Using the right mouse button, click to display the shortcut menu, then click Edit or Delete.Ťj [A R€Ô€4ŒČ°€ €€€€€€ €€ €‚˙Note You can’t delete a global variable if it’s part of a multivariable dim or var statement.B°1 ˙˙˙˙˙˙˙˙ /  Define Procedures;[Ř' €(€6˜˜˜˛€‚˙Define ProceduresW / J d€€4˜˜°Č AL(`DefineProceduresC',0,`',`')€‰‚˙See Also'ŘV $ €€˜€‚˙Ď/ s N j€Ÿ€ vtŒČ°R‚H€ ƒ€€ €âqꉀ €‚€ ƒ€€ €‚˙1With the pointer in the Action pane of the Script Wizard, using the right mouse button, click to display the shortcut menu, then click New Procedure.2In the Script pane, edit the procedure:‘-V  d –€[€4Œř°€€€€ €€ €â^’xo‰‚€€€ €€ €€ €âH˛"‰€ €‚˙If you’re working in List view, in the Action pane double-click the action or property to add to the procedure.If you’re working in Code view, in the Script pane edit the script for the new procedure. The Script Wizard automatically adds an end sub to the end of the procedure.'s + $ €€˜€‚˙Š^ ľ , (€ź€4˜˜°€€ €‚˙When you click OK, the Script Wizard inserts the procedure at the beginning of your page.T+  < F€1€4Œ˜°€ €€€€€€€‚˙Note The Script Wizard doesn’t check for duplicate procedures when reading an existing page that already contains procedures. Therefore, when you’re adding a new procedure to an existing page, you should verify that a procedure with the same name doesn’t already exist.Oľ X1ƒ˙˙˙˙˙˙˙˙!X^ASpecify the Scripting LanguageI" Ą' €D€6˜˜˜˛€‚˙Specify the Scripting language _ XR t€€4˜˜°Č(AL(`SpecifytheScriptLanguageC',0,`',`')€‰‚˙See Also'Ą'$ €€˜€‚˙âH@3 4€Ĺ€4˜˜°€âH˛"‰€€‚˙The Script Wizard lets you create scripts in either VBScript or JavaScript. However, you can use only one scripting language per page, and you can’t change the s'H@ cripting language for a page that already contains script.Z&'˘@4 8€N€ vvˆŒČ°R‚H€ †"€ ƒ‚˙To specify the scripting languageźmH@^AO n€Ú€ vtŒČ°R‚H€ ƒ€€ €‚€ ƒ€€ €‚€ ƒ€€ €‚˙1Choose Insert: Script.2In the Script dialog box, select VBScript or JavaScript.3Click OK.M˘@ŤA1˙˙˙˙˙˙˙˙"ŤAPB CSpecify the Script Pane FontF^AńA' €>€6˜˜˜˛€‚˙Specify the Script Pane Font_ ŤAPBR t€€4˜˜°Č(AL(`SpecifytheScriptPaneFontC',0,`',`')€‰‚˙See Also'ńAwB$ €€˜€‚˙)ĎPB CZ ‚€Ÿ€ vtŒČ°R‚H€ ƒ€€ €€ €âqꉀ €‚€ ƒ€€ €€ €‚˙1With the pointer in the Script pane, in Code view, using the right mouse button, click to display the shortcut menu, then click Font.2Select the font you want to use in the Script pane.NwBîC1Ď˙˙˙˙˙˙˙˙#îC”D2IScript a Jump to Another PageG  C5D' €@€6˜˜˜˛€‚˙Script a Jump to Another Page_ îC”DR t€€4˜˜°Č(AL(`ScriptaJumptoAnotherPageC',0,`',`')€‰‚˙See Also'5DťD$ €€˜€‚˙zH”D5E2 4€€4˜˜°€âH˛"‰â:´n‰‚˙Use this procedure to script an event that jumps to another page.Y%ťDŽE4 8€L€ vvˆŒČ°R‚H€ †"€ ƒ‚˙To script a jump to another pageŕŠ5EnGV z€€ vtŒČ°R‚H€ ƒ€€ €‚€ ƒ€€ €‚€ ƒ€€ €€ €‚˙1In the Event pane of the Script Wizard, click the Plus sign (+) next to the object you want to script. The hierarchy expands to display all of the events for that specific object.2Click the event from which you want to create a jump. For example, click Click to jump to another page when the user clicks the object.3In the Action pane, double-click the Go To Page… action.ÄOŽE2Iu ¸€Ÿ€ vtŒř°R‚x€ƒ€€€ăh ˙ń‰€ €âŇŹ˘ł‰€ €‚€ƒ€€€ăÅT‰€ €€ €€â^’xo‰‚˙ˇIf you’re working in List view, in the Go To Page dialog box, type the URL, without beginning or ending quotation marks, for the jump destination page, then click OK.ˇIf you’re working in Code view, in the Script pane, type the URL of the jump destination page for the window.location.href = “” property.GnGyI1T˙˙˙˙˙˙˙˙$yIJ5NHide or Show a Control@2IšI' €2€6˜˜˜˛€‚˙Hide or Show a ControlY yIJL h€€4˜˜°Č"AL(`HideorShowaControlC',0,`',`')€‰‚˙See Also'šI9J$ €€˜€‚˙…MJžJ8 @€š€4˜˜°€âH˛"‰â:´n‰â3ąf‰‚˙Use this procedure to script an event that hides or shows a control.R9JK4 8€>€ vvˆŒČ°R‚H€ †"€ ƒ‚˙To hide or show a controlžBžJŽM\ †€…€ vtŒČ°R‚H€ ƒ€€ €‚€ ƒ€€ €€ €‚€ ƒ€€ €â^’xo‰‚˙1In the Event pane of the Script Wizard, click the Plus sign (+) next to the object that contains the event you want to script. The hierarchy expands to display all of the events for that specific object.2Click the event that will initiate the hide or show action. For example, click Click to hide or show a control when the user clicks the object in the Event pane.3In the Action pane, click the Plus sign (+) next to the control that you want to hide or show. The hierarchy expands to display all of the actions and properties for that specific control.‡NK5N9 B€œ€ vtŒČ°R‚H€ ƒ€€ €€ €‚˙4Double-click the Hide Control or Show Control action as appropriate.NŽMƒN1~˙˙˙˙˙˙˙˙%ƒN+OŽScript Wizard Technical NotesG 5NĘN' €@€6˜˜˜˛€‚˙Script Wizard Technical Notesa ƒN+OT x€€4˜˜°Č*AL(`ScriptWizardTechnicalNotesC',0,`',`')€‰‚˙See Also'ĘNRO$ €€˜€‚˙U.+O§O' €\€6˜˜˜°€‚˙Differences between List view and Code viewƒQRO6€2 4€˘€4˜˜°€€ €âYŞ2÷‰‚˙In List view, you can create event §O6€5Nhandlers that use these simple actions:Ůi§O‚p Ž€Ó€ vtŒČ°R‚H€ƒ€âŸŚŮ‰‚€ƒ€‚€ƒ€€ €€ €€ €€ €‚€ƒ€â^’xo‰âŔ!o ‰‚˙ˇAny method invocation on any object or procedure that takes no arguments.ˇAny method invocation on any object or procedure that takes the same number and names of arguments as the event handler.ˇThe Go To Page, Hide or Show Control, or Bring to Front/Send to Back actions.ˇAny assignment to an object property or global variable.'6€6‚$ €€˜€‚˙Łw‚ق, (€î€4˜˜°€€ €‚˙In Code view, on the other hand, you have full support for the default scripting language, including control flow.B6‚ƒ' €6€6˜˜˜°€‚˙Scriptable HTML elementsŁSقžƒP p€Ś€4˜˜°€âˆPC,‰€ €€ €€ €€ €⚢˘ł‰€€‚˙Scripting of HTML or tags isn’t supported.L%ƒ „' €J€6˜˜˜°€‚˙ elements with common NAME=1ńžƒ;…@ N€ă€4˜˜°€€ €€ €€ €‚€ €‚˙Option buttons and other elements that share the same NAME= are not differentiated from one another in the Script Wizard Event pane.For example, in the case , each item is displayed in the following way:E „€…2 4€&€4ŒČ°€ €€ €€‚˙NAME ‘VALUE’žr;…†, (€ä€4˜˜°€€ €‚˙So if you have three option buttons, all named Color, but each having a distinct value, they might appear as:Ą@€…ż†a ’€€€ vtŒČ°R‚H€ƒ€€€€€‚€ƒ€€€€€‚€ƒ€€€€€‚˙ˇColor ‘Blue’ˇColor ‘Red’ˇColor ‘Green’'†ć†$ €€˜€‚˙6ż†‡' €€6˜˜˜°€‚˙Reading HTML?ňć†[‰M h€ĺ€4˜˜°€‚€ €€ €€€‚€ €€ €€€‚˙When you start the Script Wizard, it reads your page and searches for any occurrences of script. The first language found is established as the default scripting language for that page.If the Script Wizard finds more than one variable on a dim or var line, that variable can’t be deleted or modified.The Script Wizard does not support the SRC= attribute of the HTML