Murakami Sale
 
 

Recently Viewed clear list


The Powell's Playlist | August 6, 2014

Graham Joyce: IMG The Powell’s Playlist: Graham Joyce



The Ghost in the Electric Blue Suit is set on the English coast in the hot summer of 1976, so the music in this playlist is pretty much all from the... Continue »
  1. $17.47 Sale Hardcover add to wish list

spacer

Learning VBScript with CDROM (Nutshell Handbooks)

by

Learning VBScript with CDROM (Nutshell Handbooks) Cover

 

 

Excerpt

 Symbols & (concatenation operator), 105 x (multiplication) operator, 105 \ (integer division) operator, 105 ^ (exponentiation) operator, 105 = (equal to) operator, 106 > (greater than) operator, 106 >+ (greater than or equal to) operator, 107 - (subtraction) operator, 105 < (less than) operator, 106 <!-- --> and <SCRIPT> tags, 59 <= (less than or equal to) operator, 107 <% %> tag (ASP), 571 <%= %> tag (ASP), 571 + (addition) operator, 104 / (division) operator, 105 _ (line continuation character), 66, 106 Numbers 2D HTML, 33 HTML Layout Control, 280-295 A accelerators, 300 accessing/referencing add-on components, 32 browsers, 25 client date/time information, 306, 309 Document objects, 23, 196 Element objects, 225 Form objects, 216 Frame objects, 164, 165-167, 171, 185-188 History object, 190 Link objects, 207 Location object, 192 object references, 393-395 other documents, 26 property values, 161 radio button controls, 237, 242 stored data, 29-31 Window object, 170 ACLIST utility, 276-278 ACTION attribute, 44 Action pane (Script Wizard), 274 action property (Form), 217 Active Content, ix active pages (see dynamic web documents) Active Server Pages (see ASP) ActiveX controls, 20, 32, 46, 222, 260-262 accelerator property, 300 ActiveX Control Pad, 262-276 inserting controls, 268 obtaining and installing, 264 ActiveX Scripting Specification, 47-49, 55 adding, 284 adding to Layout window, 287 Control Lister, 276-278 editing multiple properties, 299 HTML Layout Control, 280-295 JavaScript and, 52 ActiveX controls (continued) label control, describing links with, 354-358 layered, 290 moving and resizing, 288 Object Editor, 269 quick reference, 558-566 Script Wizard, 273-276, 278, 290 security, 304 setting properties of, 270-273 standard with MSIE, 261 Ad Rotator component (ASP), 574 Add method (Dictionary), 542 adding ActiveX controls to Layout window, 287 ActiveX controls to Toolbox, 284 date/time intervals together, 323-329 Layout Control Toolbox sheets, 285 layouts to documents, 301-303 addItem method, 256 addition (+) operator, 104 add-on components, 32, 46 Alert( ), 174-176 as breakpoint, 436, 439-443 aligning ActiveX controls, 289 aLinkColor property (Document), 198 .ALX files (see layout of ActiveX controls), 281 Anchor object, 214-216 Link object versus, 215 Anchor object (Document), 197 And operator, 108, 119 ANSI codes, 408-410 appCodeName property (Navigator), 191 appending strings to documents, 203-205 applets, 32, 46 Application object, 575 applications, ASP, 570 appName (Navigator), 191 appVersion (Navigator), 191 argument lists, 138 arithmetic operators, 104, 110 Array( ), 86 in VBScript 2.0, 539 Array data subtype, 75 arrays, 83-98, 461-463 boundaries, 83, 90-91 dynamic, 87-90, 96, 462 fixed, 84-87 multidimensional, 91-98 out-of-range subscripts, 455 populating with Array( ), 86 quick reference, 522 storing page information in, 29-31 As keyword, 141 Asc( ), 408-410 ASP (Active Server Pages), 567-578 dynamic client-side scripts, 577-578 included files and, 572-574 MIIS and, determining browser, 498 Object Model, 575-577 scripting for, 570-574 server-side components, 574 assignment, 522 automatic redirection, 503-507 automatic script invocation, 63 AutoSize property (ActiveX), 270 Available Controls list box, 284 .AXS extension, 516 B Back( ), 190 BackColor property (layout control), 286 background color HTML document, 198 layout control, 286 storing in cookie, 381 bandwidth, 10-15 client-side processing and, 17 bgColor property (Document), 198 binary, converting characters from/to, 408-410 blocking non-MSIE browsers, 501-503 blur method select control, 256 text box controls, 249 Boolean data subtype, 68, 76 borderless frames, 385 boundaries, array, 83, 90-91 Break at Next Statement option, 435 "Browse by Chapter" hyperlink, 580 Browser Capabilities component (ASP), 574 browser objects, 44 browsers, 17 automatic redirection, 503-507 blocking, 501-503 creating new documents from, 26 determining, 496-500 handing non-MSIE browsers, 501-518 nonactive content pages for, 508-512 opening new window, 178 referencing/manipulating, 25 status bar, 25, 174, 351-353, 364 variable pages for, 376 (see also clients, client-side processing) button controls CommandButton control, 560 data validation and, 419-420 OptionButton control, 563 SpinButton control, 564 ToggleButton control, 566 button objects, 44 Button parameter (MouseMove), 346 buttons checkbox controls, 232-236 command (see command buttons) radio button controls, 236-243 buttons, mouse, 346 Byte data subtype, 68, 76 C calculations on data, 31 on date/time data, 320-334 calculator application (example), 144-152 Call Stack window (Script Debugger), 434 Case Else statement, 124 case sensitivity, 65 converting string case, 397-399, 409 variable names, 79 Case statements, 121-125 Catalog Index (Shopping Cart example), 465-467 CBool( ), 76 CByte( ), 76 CCur( ), 77, 539 CDate( ), 77 CDbl( ), 77 CD-ROM with book, 579-581 CGI, determining browser with, 497 change event (Visual Basic), 248 characters (see strings) checkbox controls, 232-236, 558 reversing checkbox state, 236 checked property checkbox controls, 235 radio button controls, 241 Chr( ), 408-410 Chr(0), 216 CInt( ), 41, 77 class identifier (CLSID), 263 ACLIST utility and, 278 CLASSID attribute (<OBJECT>), 263 clear method, 256 Clear( ), 206, 446, 450 clearTimeout( ), 180 click method, 232 checkbox controls and, 236 radio button controls, 243 clickable image maps (see image maps) client pull, 503 clients, 15 client-side processing, 15-20 date and time information, 306, 309 (see also date and time) determining browser from, 499 (see also browsers) client-side scripts, dynamic (ASP), 577-578 CLng( ), 77 Close( ) Document object, 206, 373 Window object, 179 CLSID (class identifier), 263, 278 code conditional statements, 114-125 conventions for, 153-157 repeating (looping constructs), 125-134 reusable, 296 (see also scripts) Code View format (Script Wizard), 278 code, Shopping Cart example, 482-494 CODEBASE attribute (<OBJECT>), 263, 265 colors HTML documents, 198 layout control, 286 for links, 197, 384 RGB system for, 200 storing in cookie, 381 VBScript strings for, 197, 553 Combo element, 256 ComboBox control, 256, 559 command buttons, 228-232 generating button click, 232 CommandButton control, 560 comments, 522 <SCRIPT> tag contents as, 59 conventions for, 155 in VBScript code, 66 commercial web sites, 4 CompareMode property (Dictionary), 541 comparison constants, 553 comparison operators, 106, 110 compile-time syntax errors, 426-428 concatenating strings, 550 concatenation operators code line continuation ( _ ), 66, 106 precedence of, 110 string concatenation (&), 105 conditional statements, 114-125 Confirm( ), 176 confirmation documents, 384-390 conjunction operator, 108 Const declaration, 80, 537 constants, 80, 523 declaring, 82, 463-465 declaring, VBScript 2.0 and, 536-539 intrinsic, 81, 464, 538, 553-557 naming conventions, 153 private, 102-104 procedure-level scope, 100 public scope, 101 script-level scope, 98-100 tristate constants, 413, 556 variant data types, 557 Content Linker component (ASP), 575 control arrays, 237 Control Lister, ActiveX, 276-278 Control Pad (ActiveX), 262-276 control statements, 113-134 controls (see ActiveX controls) Controls box, 284 Conversion Tool, 513, 515 converting characters to/from binary values, 408-410 quick reference for, 523-524 string case, 397-399, 409 strings to date/time, 320-322 strings to numbers, 410-411 converting between variant subtypes, 76-78 cookie property (Document), 201-203 cookies, 32 date/time and (example), 336-342 storing background/foreground colors, 381 coordinate system, screen, 359 Copying Control Properties (layout control), 298 Count( ), 214 count property Anchor object, 214 Dictionary object, 541 Frame object, 172 UBound( ) and, 173 Count property (Element object), 223 countdown program (example), 342-344 counter variables, 125, 127 CreateObject( ), 540 CSng( ), 77 CStr( ), 77 Ctrl-Shift-F8 (Step Out) option, 435 Currency data subtype, 69, 77, 539 formatting, 412 custom subroutines, 135 D data calculations on, 31 formatting, 411-413 storing, 29-31 submitting (see OnSubmit event) validating (see validation) data types (see variant data type) Database Access component (ASP), 575 date and time, 306 calculations with, 320-334 client information on, 306, 309 converting strings to, 320-322, 410-411 cookies and (example), 336-342 countdown program example, 342-344 Date data subtype, 69, 77 day of the week, 314-315 displaying, 24 expiring cookies, 202 formatting expressions for, 309, 334-336 formatting functions for, 412 intrinsic constants for, 554 lastModified property (Document), 201 parsing, 311-320 quick reference, 524-526 scheduling subroutines, 180 validating, 307 VBScript 2.0 and, 546-547 Date( ), 309 DateAdd( ), 323-325, 546 DateDiff( ), 325-329, 546 DatePart( ), 315-320, 546 DateSerial( ), 329-331 DateValue( ), 321 Day( ), 313 debugging, 426-443 Alert( ) as breakpoint, 436, 439-443 common mistakes, 454-456 definition of, 425 logical errors, 429-432 Notepad for, 442 Option Explicit statement, 83 Script Debugger for, 432-439 syntax errors, 426-429 typing errors, 454 VB Debugger, 440 (see also error handling) decision-making statements, 114-125 declaring, 526 arrays (see dimensioning) constants, 463-465 global variables, 463-465 script-level variables, 98 variables and constants, 82 variables, VBScript 2.0 and, 536-539 defaultSelected property (Option), 254 defaultStatus property (Window), 174 deleting Layout Control Toolbox controls, 285 Layout Control Toolbox sheets, 286 description property (Err), 446 Dictionary object, 539-545 differences, date/time, 323-329 Dim statement, 82, 84 function return values and, 141 dimensioning, 83, 461-463, 526 dynamic arrays, 87, 96 fixed arrays, 84 multidimensional arrays, 92, 96 disjunction operator, 108 displaying messages to users, 31 division (/, \) operators, 105 division by zero, 456 Do...Loop construct, 131-134 Document objects, 23, 42-44, 163, 169, 196 adding layouts to, 301-303 appending strings to, 203-205 describing links with, 345-350 dynamic (see dynamic web documents) dynamic documents and, 372 including in ASP pages, 572-574 loading from specific URLs, 181 methods of, 203-206, 372 opening/closing, 205 properties of, 197-203 referencing other, 26 document property (Window), 174 documents ASP (see ASP) with borderless frames, 385 creating with scripts, 384-390 descriptive links to (see Link objects) footers in, 380 domain attribute (cookie property), 202 Dominant Control option (layout control), 298 dot notation, 161 Double data subtype, 69, 77 downloading ACLIST utility, 278 ActiveX Control Pad, 264 ActiveX controls, security and, 304 adding variables to pages while, 380-384 creating dynamic pages while, 373-379 data, 29-31 drop-down lists (see select control) dynamic arrays, 87-90, 462 multidimensional, 96 dynamic client-side scripts, 577-578 dynamic web documents, 7-10, 370-372, 390-391 adding variables during download, 380-384 ASP and, 567-578 creating from browser, 26 creating with scripts, 384-390 Document object and, 372 frames and, 371 dynamic web documents (continued) providing nonactive pages also, 508-512 <SCRIPT> tags for, 373-379 viewing with Script Debugger, 374 E Edit Menu (ActiveX Control Pad), 266 Edit window (Script Debugger), 433 Element object, 169, 225-227 accessing/referencing, 225 control arrays and, 237 For Each...Next construct and, 225 intrinsic HTML controls and, 220-225 length property, 226 name property, 230 elements array (Form), 218, 221, 237 elements of arrays, 83 Else statements Case Else statement, 124 ElseIf statement, 117 If...Then...Else construct, 115 Empty data subtype, 67 encoding property (Form), 218 ENCTYPE attribute, 218 engine identification, 535-536 equal to (=) operator, 106 equivalence operator, 109 Eqv operator, 109 Err object, 444-450 error handling with, 451-453 error handling, 443-453, 527 common mistakes, 454-456 definition of, 424 with Err object, 451-453 Error Code Generator, 450 logical errors, 429-432 ON ERROR statement, 443, 451-453 raising errors, 448-450 robust applications and, 453-454 syntax errors, 426-429 (see also debugging) error messages logical errors and, 429-432 errors Error data subtype, 70 numbers for, 70 Subscript out of range, 86 EVENT attribute (<SCRIPT>), 61 event handlers, 135, 167 events, 167 for button controls, 232 for checkbox controls, 235 Form object, 219 Form_Load (Visual Basic), 183 Form_Unload (Visual Basic), 186 Link object, 210-213, 346 names of controls for, 40 for radio button controls, 242 for select controls, 253-255 for text box controls, 246-249 Window object, 182-185 (see also under specific event name) Events pane (Script Wizard), 274 examples, finding by topic, 581 exclusion operator, 110 Exists( ), 542 Exit statements Exit Do, 132 Exit For, 129, 130 Exit Function, 143 Exit Sub, 143 expires attribute (cookie property), 202 Expires parameter (cookies), 337 exponentiation (^) operator, 105 exporting Toolbox property sheets, 286 extracting characters from strings, 399-403 F F8 (Step Into) option, 435 False, understanding meaning of, 120-121 fgColor properry (Document), 199 File Access component (ASP), 575 File Menu (ActiveX Control Pad), 266 files (see Document objects) Filter( ), 548 fixed arrays, 84-87 floating frames, 504-507 flow, programming (see program flow) fm20.dll file, 261 focus method select control, 256 SetFocus and (Visual Basic), 249 text box controls, 249 focus, validating input and, 413-415 footer, adding to web page, 380 FOR attribute (<SCRIPT>), 61 For statements Exit For statement, 129, 130 For Each...Next construct, 128-130, 225, 546 For...Next construct, 125-128 foreground document color, 198, 381 form input validation (see validation) Form objects, 216-219 accessing/referencing, 216 form property button controls, 229 checkbox control, 234 radio button controls, 239 select control, 252 text box and password controls, 245 <FORM> tags, 43 Form_Load event, 183 Form_Unload event, 186 FormatCurrency( ), 412, 547 FormatDateTime( ), 335, 412, 547 FormatNumber( ), 412, 547 FormatPercent( ), 412, 547 formats for date/time expressions, 309, 334-336 formatting conventions for code, 155 data, 411-413 date and time strings, 554 VBScript 2.0 and, 547-548 forms, 41, 43 hidden controls in, 256-258 forms array (Document), 197 Forward( ), 190 Frame objects, 169, 185 accessing/referencing, 164, 165-167, 171, 185-188 borderless, 385 dynamic web pages and, 371 index numbers for, 171 nested, 165-167, 188 referencing contents of, 26 (see also Window object) frames floating, 504-507 <NOFRAMES> tag, 504-507, 511 frames array (Window), 171-173 <FRAMESET> tags, 385 framesets, 165-167 .FRM files (see layout of ActiveX controls), 282 Function...End Function construct, 139-143 Exit Function statement with, 143 functions, 134, 139-143 for formatting data, 411-413 inspecting with Script Debugger, 436-439 mathematical, 528 methods versus, 167 naming conventions, 154 quick reference, 521-533 script engine identification, 535-536 validation, 395-411 G global variables, 463-465 GMT time format, 337 Go( ), 191 greater than (>) operator, 106 greater than or equal to (>=) operator, 107 grid alignment of ActiveX controls, 289 GUIDGEN program, 263 H hash property Link object, 208 Location object, 194 HEIGHT attribute (<OBJECT>), 263 height property (layout control), 286 hidden control, 256-258 hidden text (see password control) hierarchy, object, 160, 162-164 History object, 189 history property (Window), 173 host property Link object, 207 Location object, 193 hostname property Link object, 208 Location object, 193 HotSpot Control, 560 Hour( ), 311 HREF attribute (<IMG>), 363 href property Link object, 207 Location object, 193 HTML (Hypertext Markup Language), 2 calling scripts from, 63 commenting out <SCRIPT> contents, 59 forms, 41, 43 intrinsic objects (see Document objects) objects of, 44 two-dimensional, 33, 280-295 HTML Editor (ActiveX Control Pad), 267 HTML Layout Control, 280-283 creating layout, 286-293 keyboard shortcuts (accelerators), 300 layering controls, 290 menu bar example, 297-303 Script Wizard versus, 290 Toolbox, 283-286 HTTP_USER_AGENT variable, 497 Hungarian notation, 153 hyperlinks (see Link objects) I ID attribute <IMG> tag, 363 <OBJECT> tag, 263 ID property, layout control, 287 IEXPLORE.EXE file, 44 If statements ElseIf statement and, 117 If...Then construct, 114 If...Then...Else construct, 115 nesting, 116 <IFRAME> tag, 504-507 nonactive web pages, 508 IIS, determining browser with, 498 Image control, 561 image maps defining, 360-362 <IMG> tag and, 363 relative URLs and, 363 screen coordinates, 359 scripts for, 362-368 Immediate window (Script Debugger), 434, 436-439 Imp operator, 109 implication operator, 109 implied True, 121 importing Toolbox property sheets, 286 #include directive, 572 including files in ASP pages, 572-574 index, array, 83, 86 determining highest/lowest, 90-91, 97 inline code, 64 input, 527 prompting user for, 177 validating (see validation) <INPUT> tags, 23, 43, 220 event control names, 40 installing ActiveX Control Pad, 264 InStr( ), 405-406 Mid( ) and, 402 InStrRev( ), 406, 550 Integer data subtype, 68, 77 integer division (\) operator, 105 interactivity, 7-10, 224 links and, 345 performance and, 12, 13 of select controls, 250 (see also dynamic web documents) interface (see user interface) Internet Explorer, 18, 495 browser objects, 44 handing browsers different from, 501-518 layout control (see HTML Layout Control) Scripting Object Model, 168-170 standard ActiveX controls with, 261 intrinsic constants, 464, 538, 553-557 intrinsic HTML constants, 81 intrinsic HTML controls Element object and, 220-225 limitations of, 260 list of, 227-258 naming conventions, 155 intrinsic HTML objects (see Document objects) Is operator, 107 IsDate( ), 308, 411 IsNumeric( ), 109, 410-411 Item( ), 214 Item property (Dictionary), 541 Items, Dictionary object, 539 Items method (Dictionary), 542 J Java applets, 32, 46 JavaScript determining browser from client side, 499 generating with Script Wizard, 274 VBScript versus, 50-54 Join( ), 550 K key property (Dictionary), 542 keyboard shortcuts, 300 Keys method (Dictionary), 543 keywords, 79 L Label control, 561 label control, describing links with, 354-358 LANGUAGE attribute (<SCRIPT>), 48, 53, 58 lastModified property (Document), 201 layers of ActiveX controls, 290 layout of ActiveX controls, 280-283 adding to documents, 301-303 creating, 286-293 layout control Toolbox, 283-286 menu bar example, 297-301 LBound( ), 90-91 LCase( ), 397 left property (Window), 270 Left( ), 399 Len( ), 396 length property Anchor object, 214 Element object, 223, 226 History object, 190 Link object, 207 Option object, 254 select control, 252 less than (<) operator, 106 less than or equal to (<=) operator, 107 line continuation character ( _ ), 66, 106 Link objects, 206-214 Anchor objects versus, 215 colors for, 197, 384 describing with ActiveX Label control, 354-358 with browser status bar, 351-353 with intrinsic objects, 345-350 events of, 210-213, 346 properties of, 207-210 linkColor property (Document), 197 links array (Document), 197 List View format (Script Wizard), 278 ListBox control, 562 lists drop-down (see select control) multiple-choice (see radio button controls) literals (see constants) loading documents onLoad event, 182-184 onUnload event, 184 from specific URLs, 181 Location object, 192-196 location property Document object, 201 Window object, 173 logical errors, 429-432 logical operators, 108-110 with control structures, 119 Long data subtype, 69, 77 Long date format, 309 looping statements, 125-134 counter variables, 125, 127 LostFocus event (Visual Basic), 247 lowercase, converting string to, 397 M maintenance headers, 155 MakeLegalCookieDate( ), 337 manipulating strings (see strings) mathematic functions, 528 menu bar, creating (example), 297-303 message boxes Alert( ) for, 174-176 Confirm( ) for, 176 intrinsic constants for, 555-556 Prompt( ) for, 177 messages, displaying to user, 31 <META> tag, 503 METHOD attribute, 44 method property (Form), 218 methods, 167 validation, 395-411 (see also functions) Microsoft Script Debugger, 432-439 Mid( ), 401 MIIS, determining browser with, 498 Minute( ), 311 mismatches of data type, 455 Mod (modulo) operator, 105 monetary types, 77 monetary values, 69 Month( ), 313 mouseMove event, 6, 211, 346 image maps and, 362 moving ActiveX controls, 288 MsgBox (see message boxes) MSIE (see Internet Explorer) multidimensional arrays, 91-96 dynamic, 96 multiple choice (see radio button controls) multiplication (x) operator, 105 N NAME attribute (<INPUT>), 43 name property Anchor object, 214, 216 button controls, 229 checkbox controls, 234 Element object, 230 hidden control, 258 radio button controls, 240 select control, 252 text box and password controls, 245 Window object, 174-175 named hyperlinks, 346 names for constants, 80, 153 conventions for, 153-155 for subroutines, 136, 153 for variables, 79, 153 Navigate( ), 181 navigating image bar map for, 362 object hierarchy, 162-164 Navigator object, 191 userAgent property, 499 navigator property (Window), 173 NCompass adapter, 55 NCompass Conversion Tool, 513, 515 NCompass Laboratories, 512 negation operator, 109 nested Frame objects, 188 frames, 165-167 If statements, 116 Netscape Navigator, 55, 495 plug-ins, 512-519 Next statement, 125-130 <NOFRAMES> tag, 504-507 nonactive web pages, 511 nonactive content pages, 508-512 noncommercial web sites, 4 Not operator, 109, 121 Notepad, debugging with, 442 Now( ), 309 Null data subtype, 67 number property (Err), 445-446 numbers converting strings to, 410-411 dividing by zero, 456 error codes, 445-446 formatting, 412 O Object data subtype, 69 object references, validating with, 393-395 <OBJECT> tags, 46, 220 ActiveX controls and, 261, 263 CODEBASE attribute, 265 objects, 37, 160-168 accessing as properties, 162-165 Active Server Object Model, 575-577 ActiveX Object Editor, 269 browser (see browser objects) classes of, 42-46 comparing references to, 107 hierarchy of, 160, 162-164 HTML, 44 intrinsic (see Document objects) MSIE, 44 MSIE Scripting Object Model, 168-170 naming conventions, 155 properties of, 161-167 VBScript language engine, 46 obtaining ACLIST utility, 278 ActiveX Control Pad, 264 OCX controls, 20, 32 OLE automation, 47-49 ON ERROR statement, 443, 451-453 onBlur event data validation with, 413-415 LostFocus and (Visual Basic), 247 text box controls, 247 onChange event Change and (Visual Basic), 248 data validation and, 415 select control, 255 text box controls, 248 onClick event, 213 button controls and, 231 checkbox controls and, 235 click method and, 236 data validation and, 419-420 image maps and, 363 radio button controls and, 242 onFocus event select control, 253 text box controls, 247 ONLOAD attribute, 182 onLoad event, 182-184 onMouseOver event, 212, 347 onSelect event (text box controls), 248 onSubmit event, 219 data validation and, 417-420 ONUNLOAD attribute, 184, 186 onUnload event, 184 Open( ) Document object, 205, 372 Window object, 178 operators, 104-111 precedence of, 110 quick reference for, 529-530 (see also variables) Option Base statement, 90 Option Explicit statement, 83 Option object, 253-255 <OPTION> tags, 253 OptionButton control, 563 options array (select control), 253-255 Or operator, 108, 119 order of operator precedence, 110 ordering through Shopping Cart script, 470-476 origin, screen coordinate system, 359 output, quick reference for, 527 overlapping ActiveX controls, 290 P <PARAM> tags, ActiveX controls and, 263 parent property (Window), 171 parsing date and time, 311-320 strings, 551 URLs (see Location object) passing by reference/value, 139 password control, 243-249 path attribute (cookie property), 202 pathname property Link object, 208 Location object, 193 percents, formatting data as, 412 performance, 10-15 client-side processing and, 17 object references and, 394 robustness and, 453-454 timing data validation, 413-422 pixels, coordinates of, 359 plug-ins for Netscape Navigator, 512-519 populating arrays, 86 port property Link object, 208 Location object, 193 precedence, operator, 110 Preserve keyword, 97 Private declaration, 102-104, 536 private variable scope, 102-104 procedure-level variable scope, 100 procedures (see subroutines) Product Details page (Shopping Cart), 467-470 program flow conditional statements, 114-125 control statements, 113-134 functions (see functions) looping statements, 125-134 quick reference, 530-531 subroutines, 134-139 programmatic identifiers, 49 Project Explorer window (Script Debugger), 434 Prompt( ), 177 properties, 161-167 accessing objects as, 162-165 properties (continued) ActiveX controls Property Editor for, 289 setting in Properties window, 270-273 changing several at once, 299 HTML layout, 286 Properties editor (layout control), 289 Properties window (ActiveX Control Pad), 270-273, 289, 299 property sheets, Layout Control Toolbox, 283-286 protocol property Link object, 207 Location object, 193 Public declaration, 101, 537 public variable scope, 101 Q query string, URL, 193, 208 quick reference ActiveX controls, 558-566 VBScript, 521-533 quotation marks and Document.write, 378 R radio button controls, 236-243 generating button clicks, 243 Raise( ), 448-450 raising errors, 448-450 read-only properties, 161 ReDim statement, 87, 96 redirection, 503-507 reference, passing by, 139 referencing (see accessing/referencing) referrer property (Document), 203 reformatting date/time expressions, 334-336 relative URLs and image maps, 363 Remove( ), 543 RemoveAll method (Dictionary), 543 removeItem method, 256 removing Layout Control Toolbox controls, 285 Layout Control Toolbox sheets, 286 renaming Toolbox property sheets, 285 repetition of code, 125-134 Replace( ), 336, 403-404, 551 Request object, 576 reserved words, 79 reset button (see command buttons) resizing ActiveX controls, 288 resolution, screen, 359 Response object, 576 retrieving (see accessing/referencing) return value of functions, 141 reusable code, 296 reversing string characters, 552 RGB color system, 200 Right( ), 400 robustness, 453-454 Round( ), 547 run time changing variable values at, 439 syntax errors at, 428 RUNAT attribute (<SCRIPT>), 577 S saving (see storing) scalar variables (see variables) scheduling subroutines, 180 scope, variable private, 102-104 procedure-level, 100 public, 101 script-level, 98-100 screen coordinate system, 359 Script Debugger, 432-439 dynamic documents and, 374 Immediate window, 434, 436-439 tracing script execution, 434 unavailability of, 432 <SCRIPT FOR> tags, 61 MouseMove event and, 346 Script pane (Script Wizard), 275 <SCRIPT> tags, 19, 40, 57-61 in ASP pages, 571 building dynamic documents with, 373-379 LANGUAGE attribute, 48, 53, 58 Script window (Script Debugger), 433 Script Wizard, ActiveX, 273-276, 290 Code View vs. List View, 278 ScriptActive Plug-in, 512-519 ScriptEngine functions, 535-536 scripting languages, 19 script-level variable scope, 98-100 scripts ASP for, 567-578 in ASP pages, 570-574 common mistakes in, 454-456 control statements, 113-134 creating web pages from, 384-390 dynamic client-side, 577-578 engine identification, 535-536 error handling, 424, 443-453 formatting conventions for, 155 functions, 139-143, 154 for image maps, 362-368 invoking, 61-65 when loading pages, 63 looping statements, 125-134 robustness of, 453-454 Shopping Cart example, 457-494 subroutines, 134-139 timing processes of, 332 tracing with Script Debugger, 434 coding (see code) ScrollBar control, 563 search property Link object, 208 Location object, 193 searching for subtrings, 405-407, 550 Second( ), 311 security, 304 secure attribute (cookie property), 202 VBScript features, 39 Select Case statement, 121-125 select control, 250-256 onFocus event, 256 select method (text box controls), 249 <SELECT> tags, 43, 250 selected property (Option), 255 selectedIndex property Option object, 254 select control, 253 self property (Window), 171 Server object, 576 servers, 15 server-side processing, 15-18 VBScript for, 33 storing downloaded data from, 29-31 Session object, 577 Set Breakpoint option, 435 Set statement, 393-395 SetFocus method (Visual Basic), 249 setTimeout( ), 180, 351 setting property values, 161 SETUPPAD.EXE file, 264 sheets, Layout Control Toolbox, 283-286 Shift parameter (MouseMove event), 346 Shift-F8 (Step Over) option, 435 Shopping Cart script example, 457-494 Catalog Index, 465-467 Product Details page, 467-470 source code for, 482-494 submitting customer's order, 476-481 taking customer's order, 470-476 Short date format, 309 Show Grid option (layout control), 289 Single data subtype, 69, 77 size of ActiveX controls, 288 of string, determining, 396 Snap to Grid option (layout control), 289 source code, Shopping Cart example, 482-494 source property (Err), 447 speed (see performance) SpinButton control, 564 Split( ), 336, 551 splitting date and time, 311-320 SRC attribute (<IFRAME>), 504 Standard property sheet, 283 startup scripts, 63 status bar, browser, 25, 174, 364 describing links with, 351-353 status property (Window), 174, 351-353 Step Into (F8) option, 435 Step keyword, 126 Step Out (Ctrl-Shift-F8) option, 435 Step Over (Shift-F8) optoin, 435 storing background/foreground colors in cookies, 381 data from server, 29-31 layouts, 292 URLs (see Location object) variables as hidden controls, 256-258 String data subtype, 69, 77 strings appending to documents, 203-205 color, 197 concatenating, 105, 550 strings (continued) converting case of, 397-399, 409 characters to/from binary, 408-410 to date/time, 320-322 to numbers/dates, 410-411 determining size of, 396 extracting characters from, 399-403 filtering, 548 intrinsic constants, 556 parsing, 551 quick reference, 531-532 reversing characters of, 552 searching, 405-407, 550 substituting characters within, 403-404 time (see date and time) VBScript 2.0 and, 548-552 StrReverse( ), 552 Sub...End Sub construct, 62, 135-137 Exit Sub statement with, 143 submit button (see command buttons) submit method (Form), 218 submitting data, validation and, 417-420 submitting order (Shopping Cart), 476-481 subobjects (see objects) subroutines, 134-139 for events (see event handlers) functions, 139-143, 154 invoking scripts from other, 64 naming conventions, 153 passing variables into, 138-139 scheduling, 180 Subscript Out Of Range error, 455 subtracting date/time intervals, 323-329 subtraction (-) operator, 105 subtypes, 67-70 abbreviations for, 153 converting between, 76-78 determining, 71-76 text/textarea controls and, 73 syntax errors, 454 at compile time, 426-428 at run time, 428 T TabStrip control, 564 target property Form object, 218 Link object, 208 telnet utility, 2 text boxes, string length of, 396 text control, 243-249 data subtypes and, 73 text property Option object, 255 in Visual Basic, 246 text, hidden (see password control) textarea control, 243-249 <TEXTAREA> tags, 243 TextBox control, 565 time (see date and time) Time( ), 309 timeouts, 180 Timer( ), 332 TimeSerial( ), 331 TimeValue( ), 321 timing data validation, 413-422 title property (Document), 201 ToggleButton control, 566 toggles (see checkbox controls) toolbar ActiveX Control Pad, 267 for navigation, 362 Toolbox, layout control, 283-286 Tools Menu (ActiveX Control Pad), 267 top property (Window), 163, 170, 171, 270 tracing script execution, 434 Alert( ) as breakpoint, 436, 439-443 tristate constants, 413, 556 True, understanding meaning of, 120-121 two-dimensional HTML, 33 HTML Layout Control, 280-295 TYPE attribute (<INPUT>), 43, 227 type mismatches, 455 TypeName( ), 74-76, 537 TypeOf statement (VBA), 226 typing errors, 454 U UBound( ), 90-91 count property and, 173 multidimensional arrays with, 97 UCase( ), 398 underscore character ( _ ), 66, 106 Until statement, 131 uppercase, converting strings to, 398 URLs (uniform resource locators) loading documents from, 181 query/search strings, 193, 208 relative, image maps and, 363 storing/parsing (see Location object) user interface, 8 Shopping Cart (example), 459 user session information, 577 userAgent property (Navigator), 192, 499 User-Agent request header, 496 users displaying messages to, 31 prompting for input, 177 UUIDGEN program, 263 V validation, 392, 422 combining methods for, 420-422 date and time, 307 formatting data for, 411-413 list of functions for, 395-411 object references and, 393-395 robust applications, 453-454 timing, 413-422 VALUE attribute, 24 value, passing by, 139 value property button controls, 231 checkbox controls, 234 hidden control, 258 radio button controls, 240 text box and password controls, 245 text property and (Visual Basic), 246 variable pages, 376 variables, 79 adding to downloading pages, 380-384 arrays and, 83-98 changing values at run time, 439 counters, 125, 127 declaring, 82 VBScript 2.0 and, 536-539 function return values, 141 global, 463-465 inspecting with Script Debugger, 436-439 naming conventions, 153 object references, 393-395 passing into subroutines, 138-139 private, 102-104 scope of, 98-104 storing as hidden controls, 256-258 (see also constants; operators) variant data type, 67-78 converting between subtypes, 76-78 determining subtypes, 71-76, 532 instrinsic constants for, 557 subtype appreviations, 153 subtypes of, 67-70 type mismatches, 455 VarType constants, 557 VarType( ), 71-74 intrinsic constants and, 538 TypeName( ) versus, 537 VB Debugger, 440 VBA (Visual Basic for Applications), 38 Next statement, 126 VBScript, 19 case insensitivity of, 65 coding conventions, 153-157 color strings, 197 development of, 38-40 engine objects, 46 future of, 49 how it works, 40-49 JavaScript versus, 50-54 obtaining version 2.0, 579 possibilities of, 22-33 quick reference, 521-533 server-side, 33 time (see date and time) version 2.0, 39, 534-552 visibility, variable, 98 Visual Basic, 36-38 control arrays, 237 Form_Load event, 183 Form_Unload event, 186 Next statement, 126 script-level scope, 98 Visual Basic for Applications (VBA), 38 vLinkColor proeprty (Document), 198 W web documents (see documents) Weekday function, variable pages with, 376 Weekday( ), 315, 546 WeekdayName( ), 546 weeks, day of, 314-315 While...Wend construct, 134 whitespace, 66 WIDTH attribute (<OBJECT>), 263 width property (layout control), 287 Win-CGI, determining browser with, 497 Window object, 169-185 events of, 182-185 methods of, 174-182 opening/closing, 178-180 properties of, 171-174 Window_OnLoad subroutine, 184 Window_OnUnload subroutine, 185 Windows date formats, 309 World Wide Web, 1 client-side processing, 15-20 functionality of, 4-7 interactivity on, 7-10 server-side processing, 15-17 write( ), 203, 372 Document object, 380-384 quotation marks and, 378 writeLn( ), 205, 373 X X parameter (MouseMove event), 346 Xor operator, 110, 530 Y Y parameter (MouseMove event), 347 Year( ), 313 Z zero, dividing by, 456 
END

Product Details

ISBN:
9781565922471
Editor:
Petrusha, Ronald
Author:
Petrusha, Ronald
Author:
Lomax, Paul
Author:
Lomax
Publisher:
O'Reilly Media
Location:
Sebastopol, CA :
Subject:
Programming Languages - General
Subject:
Programming - General
Subject:
Technology
Subject:
Computers and computer technology
Subject:
Computers
Subject:
Web sites
Subject:
World wide web (information retrieval system)
Subject:
Computer programs
Subject:
Programming Languages - CGI, Javascript, Perl, VBScript
Subject:
Vbscript (computer program language)
Subject:
Web sites -- Design.
Subject:
VBScript
Subject:
Books; Computers & Internet; Web Development; Scripting & Programming; VBScript
Subject:
Books; Computers & Internet; Programming; Web Programming; VBScript
Subject:
Programming Languages - JavaScript
Subject:
Microsoft;VBScript;Windows;client-side scripting
Subject:
Computer Languages-CGI
Copyright:
Edition Number:
1st ed.
Edition Description:
Print PDF
Series:
Nutshell Handbooks
Publication Date:
19970731
Binding:
TRADE PAPER
Language:
English
Illustrations:
Yes
Pages:
624
Dimensions:
24 cm. +

Other books you might like

  1. Build a Doodle Ocean Used Trade Paper $2.95
  2. Ebb and Flo and the Greedy Gulls Used Hardcover $7.95
  3. Baseball Jokes and Riddles New Trade Paper $16.25
  4. Animorphs #34: The Prophecy Used Trade Paper $2.50
  5. The 12 Days of Christmas: A Pop-Up... Used Hardcover $7.50
  6. A Night Before Christmas in Florida New Hardcover $6.25

Related Subjects

Computers and Internet » Computer Languages » Javascript
Computers and Internet » Computer Languages » VBScript
Computers and Internet » Internet » Scripting
History and Social Science » Politics » General

Learning VBScript with CDROM (Nutshell Handbooks) Used Trade Paper
0 stars - 0 reviews
$26.00 In Stock
Product details 624 pages O'Reilly & Associates - English 9781565922471 Reviews:
"Synopsis" by ,
Examining the differences between VBScript and JavaScript, this introductory tutorial illustrates how to implement the new ActiveX components using VBScript. Above all, it gives a proficient grounding and understanding of VBScript, allowing readers to create more complex Web applications and documents. The CD-ROM contains some carefully selected development tools including ActiveX Control Pad, HTML Layout Control, and ActiveX Control Lister for HTML.
"Synopsis" by , Client-side scripting involves creating programs that run on a user'sbrowser, in the process making web pages more interactive or faster."Learning VBScript shows how to take full advantage of client-sidescripting using Microsoft's own scripting language, VBScript. The book consists of three sections that quickly teach the reader how to write client-side scripts to enhance a web site's pages: A fast-paced introduction to VBScript that covers basic language features, including the differences between VBScript and Visual Basicfor ApplicationsAn introduction to the Microsoft Internet Explorer (MSIE) object model, which transforms VBScript into a powerful language that controls the browser, allowing the creation of interactive web pagesTechniques for enhancing the interactivity and attractiveness of a website, such as adding ActiveX controls to a web page, creating documents"on the fly" on the browser, and validating user data "before submittingit to the server For content providers who want to learn client-side scripting or VB programmerswho want to create web applications, "Learning VBScript is the definitiveguide that takes you through language basics as well as specific techniques fordeveloping professional web pages. Includes CD-ROM with over 170 code samplesand a customizable shopping cart application.
spacer
spacer
  • back to top
Follow us on...




Powell's City of Books is an independent bookstore in Portland, Oregon, that fills a whole city block with more than a million new, used, and out of print books. Shop those shelves — plus literally millions more books, DVDs, and gifts — here at Powells.com.