Flylib.com

Books Software

 
 
 

Dedication

[ LiB ]

Dedication

To Alexander, William, Molly, and Mary.

[ LiB ]
[ LiB ]

ACKNOWLEDGMENTS

There are a number of individuals who deserve a lot of credit for the effort that they put into this book. I especially want to thank Arlie Hartman who served as the book's acquisitions editor. I also want to thank the book's project editor, Kim Benbow, for her guidance and suggestions. Finally, I want to acknowledge the book's copy editor, Gene Redding, and its technical editor, Burt LaFontaine, as well as everyone else at Premier Press for all their hard work.

[ LiB ]
[ LiB ]

ABOUT THE AUTHOR

Jerry Lee Ford, Jr. is an author, educator, and an IT professional with over 15 years ' experience in information technology, including roles as an automation analyst, technical manager, technical support analyst, automation engineer, and security analyst. In addition, he has a master's degree in business administration from Virginia Commonwealth University in Richmond, Virginia. Jerry is also the author of 13 other books including Learn VBScript In a Weekend , Microsoft Windows Shell Scripting and WSH Administrator's Guide , VBScript Professional Projects and Microsoft Windows XP Professional Administrator's Guide . He has over five years' experience as an adjunct instructor teaching networking courses in information technology. Jerry lives in Richmond, Virginia, with his wife, Mary, and their children William, Alexander, and Molly.

[ LiB ]
[ LiB ]

Introduction

Congratulations on your decision to learn JavaScript and JScript. JavaScript is a powerful scripting language that, when combined with HTML, allows you to create exciting and powerful Web pages. You can use these Web pages to run a small business or to share information with family and friends over the Internet. JScript is a Microsoft implementation of JavaScript that can be used as a scripting language for automating repetitive or complex desktop and system tasks .

What you are probably asking yourself is, "Can I really learn to program using JavaScript and JScript in a single weekend ?" The answer is "Yes!" I am not promising that you will become a programming guru in just a few days, but if you will dedicate a full weekend to this book and follow along with its examples, you will be able to write your own JavaScripts and JScripts. In no time you will be able to make dramatic improvements to your Web pages as well as develop scripts that automate any number of Windows desktop tasks.

Syntactically, JavaScript and JScript are virtually identical. So by learning how to write JavaScripts, you are also learning how to work with JScript as well. Where the two languages differ is in the environments in which they execute. JavaScripts are embedded inside HTML pages and run by Web browsers. JScripts, on the other hand, are written as plain text files that are executed directly from the Windows desktop by the Windows Script Host or WSH.

As long as you have basic Windows skills and a good HTML background, you'll find that this book will provide you with all the information and examples you need to get up and running with both of these exciting scripting languages in a single weekend.

[ LiB ]
[ LiB ]

What This Book Is About

This book is about learning how to write JavaScripts in order to create exciting Web sites. It is also designed to teach you how to leverage the skills and knowledge that you'll develop working with JavaScript in order to create JScripts that automate desktop tasks . Basic experience with Windows and HTML is assumed. The book provides the rest for you. By the time the weekend is over, you will have learned how to do the following:

  • Integrate JavaScripts into your Web pages

  • Use JavaScript to take control of the browser status line

  • Use JavaScript to display pop-up alert, prompt, and confirmation dialog boxes so that you can interact with your visitors

  • Use JavaScript to add graphic effects to Web pages

  • Use JavaScript to create Web page banners, clocks, and other animation effects

  • Use JavaScript to validate forms and e-mail the contents of those forms to yourself

  • Write JavaScripts that collect and save visitor information

  • Write JScripts that automate Windows tasks, such as the creation of new user accounts and disk and printer management

  • Write JScripts that can read text files and create log and report files

  • Write JScripts that can create shortcuts and configure the Windows Start menu and Quick Launch bar

[ LiB ]