With the advent of client-side scripting, it is possible to create programs that run on a user's browser in response to particular user actions, like passing the mouse over a hyperlink or clicking a standard HTML command button. By taking advantage of client-side scripts, web pages can be made more interactive, and programs that ran as (usually CGI) applications on the server before client-side scripting can now execute on the browser, in the process improving the performance of a web site's web pages.In Learning VBScript, Paul Lomax shows how to take full advantage of client-side scripting using Microsoft's own scripting language, Visual Basic Scripting Edition, or VBScript. Learning VBScript consists of three distinct sections that quickly teach the reader how take advantage of client-side scripting to enhance a web site's pages:
- A fast-paced introduction to VBScript that covers the basic features of the language and their syntax. Although these tutorial chapters are written primarily for web content providers, they also explore the difference between VBScript and Visual Basic for Applications, the programming language used both in Visual Basic and in the individual components of Microsoft Office, making them of interest to the millions of VBA programmers who are fairly new to the Web and to developing web pages.
- An introduction to the Microsoft Internet Explorer (MSIE) object model. By accessing the events, properties, and methods exposed by the browser's object model, VBScript is transformed from a fairly powerless programming language into a powerful development tool that can be used to control the browser, allowing the creation of complex interactive web pages.
- A series of chapters, each of which examines a set of techniques that use client-side scripting to enhance the interactivity and attractiveness of a web site.
In focusing on techniques for creating professional, scripted web pages,
Learning VBScript includes chapters on the following:
Creating documents "on the fly" from a script running on the browserFully describing hyperlinks when the user's mouse passes over themPerforming validation on data entered by the user before it is submitted to the serverIncorporating ActiveX controls in a web page>Using VBScript's error handling feature to anticipate and handle user errorsHandling different browsers, particularly MSIE, Netscape Navigator, and the older browsers that don't support scriptingThe CD-ROM accompanying
Learning VBScript includes over 170 code samples, and allows you to retrieve examples by category; you can, for instance, retrieve hyperlinks to all the web pages that include ActiveX controls. In addition, the CD-ROM includes a complete shopping cart application that can be easily customized for your own needs.Whether you're a content provider who wants to add client-side scripts to web pages or a Visual Basic programmer who wants to begin creating web applications,
Learning VBScript is the definitive guide that takes you through the rudiments of the language and covers the techniques needed to develop professional web pages.