O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

VBScript

Video Description

Instructor, Steve Holzner, teaches you VBScript, the powerful scripting language that comes built into Internet Explorer. Learn to use VBScript code to change web pages on the fly, check data before it's sent to the server, or perform calculations behind the scenes. Make web pages come alive by handling the data the user enters into controls like text fields, list boxes, and dialog boxes. VBScript it also the language used in Active Server Pages (ASP), using such servers as the Internet Information Server (IIS) or Microsoft's Personal Web Server (PWS). Using VBScript in ASP, you can execute your own code on the server, putting together web pages in real time to send back to the browser. To being learning today, simple click on one of the VBScript lessons.

Table of Contents

  1. Introduction
    1. Welcome 00:06:08
    2. System Requirements 00:02:18
    3. A Word About Security 00:01:40
  2. Getting to Know VBScript
    1. Creating a Script 00:04:30
    2. Writing to a Web Page pt. 1 00:06:34
    3. Writing to a Web Page pt. 2 00:02:05
    4. Writing to a Web Page using ASP 00:01:34
    5. Getting the VBScript Version 00:03:11
    6. Commenting VBScript Code 00:03:41
    7. Displaying Messages With MsgBox 00:05:57
  3. Variables
    1. Storing Data in Variables 00:04:07
    2. Creating Variables With Dim 00:03:02
    3. Insisting That Variables Be Declared 00:03:35
    4. Creating Constants With Const 00:03:49
    5. Reading Data with InputBox 00:06:18
    6. Handling Data Types 00:05:31
    7. Checking a Variable Type 00:04:39
    8. Converting Between Types 00:03:56
  4. Operators
    1. Operators and Precedence pt. 1 00:05:41
    2. Operators and Precedence pt. 2 00:03:30
  5. Conditionals and Errors
    1. If . . . Then pt. 1 00:04:48
    2. If . . . Then pt. 2 00:03:34
    3. Comparison Operators 00:03:15
    4. Logical Operators 00:06:28
    5. Select Case 00:04:07
    6. Handling Errors 00:03:36
    7. Getting Error Information 00:04:30
  6. Arrays
    1. Creating Arrays With Dim pt. 1 00:04:59
    2. Creating Arrays With Dim pt. 2 00:04:26
    3. Creating Arrays With Array 00:02:21
    4. Resizing Arrays With ReDim 00:05:39
    5. Erasing Arrays 00:02:53
    6. Getting Array Information 00:02:40
    7. Creating Dictionaries 00:05:12
  7. Loops
    1. For . . . Next 00:06:16
    2. Looping Over Arrays 00:05:52
    3. For . . . Each 00:03:34
    4. Do . . . Loop pt. 1 00:04:32
    5. Do . . . Loop pt. 2 00:05:22
    6. While . . . Wend 00:04:04
    7. Using the Exit Statement 00:03:47
  8. Subroutines
    1. Creating Subroutines 00:05:59
    2. Passing Data to Subroutines 00:06:12
  9. Functions
    1. Creating Functions 00:05:37
    2. Executing VBScript Code on the Fly 00:03:49
    3. Understanding Scope pt. 1 00:03:18
    4. Understanding Scope pt. 2 00:03:53
  10. Buttons and Text Fields
    1. Creating Buttons 00:03:13
    2. Working With Events 00:06:49
    3. Creating Text Fields 00:06:28
    4. Reading From Text Fields 00:02:16
    5. Validating User Data 00:06:57
    6. Reading Passwords 00:04:07
  11. Radio Buttons and Checkboxes
    1. Creating Radio Buttons 00:03:51
    2. Setting and Checking Radio Buttons 00:02:46
    3. Creating Checkboxes 00:05:51
    4. Setting and Checking Checkboxes 00:03:54
    5. Passing Data to Event Handlers 00:03:27
  12. List Boxes and Image Controls
    1. Creating Listboxes 00:04:32
    2. Creating Multiple-Selection List Boxes 00:06:09
    3. Adding Items to a List Box 00:04:36
  13. Image Maps and the Mouse
    1. Creating an Image Map 00:04:35
    2. Clicking and Moving the Mouse 00:04:18
    3. Dragging the Mouse 00:04:55
    4. Handling Controls in Other Frames 00:05:48
    5. Loading Frames From Code 00:03:21
  14. Built-in Functions: Strings
    1. Searching Text Strings 00:06:37
    2. Replacing Text 00:04:18
    3. Working With Spaces 00:03:04
    4. Working With Case 00:03:59
    5. Working With Substrings 00:04:21
    6. Splitting and Joining Arrays 00:06:04
    7. Reversing and Comparing 00:04:22
    8. Formatting Numbers Into Strings 00:04:13
    9. Formatting Dates Into Strings 00:03:03
    10. Using Regular Expressions 00:05:18
    11. Replacing Text Using Regular Expressions 00:02:33
  15. Built-in Functions: Times and Dates
    1. Getting the Time 00:03:09
    2. Getting the Date 00:03:15
    3. Adding and Subtracting Dates 00:06:13
  16. Built-in Functions: Math
    1. Getting Absolute Values and Signs 00:02:33
    2. Getting Random Numbers 00:04:28
    3. The Log and Trig Functions 00:04:30
    4. Rounding Numbers 00:02:30
  17. Object-Oriented Programming
    1. Creating Classes and Objects 00:05:26
    2. Creating Methods 00:03:30
    3. Creating Constructors 00:03:47
    4. Creating Destructors 00:04:08
    5. Creating a Read-Only Property 00:07:16
    6. Creating a Read/Write Property 00:05:24
    7. Making Properties Private 00:05:27
    8. Making Methods Private 00:05:44
    9. Creating Default Properties and Methods 00:04:32
  18. Using VBScript in Active Server Pages
    1. Creating ASP Pages 00:05:11
    2. Reading User Input 00:05:45
    3. Setting and Reading Cookies 00:02:57
  19. In Conclusion
    1. Wrap-Up 00:02:21
  20. Credits
    1. About the Author 00:00:36