Pure JavaScript

Pure JavaScript, Second Edition is a substantial and focused reference for experienced Web developers. This book begins with an accelerated introduction to the newest features of JavaScript so that experienced Web developers can quickly understand the concepts of JavaScript and begin developing their own JavaScript solutions immediately.

Pure JavaScript, Second Edition contains concise descriptions of JavaScript forms, cookies, windows, and layers. Beyond the brief descriptions and short syntax snippets found in most references, this book also provides real-life, well-commented JavaScript examples for each documented object, property, method, and event handler. This not only helps the reader's understanding of the syntax, but also provides a contextual aid in determining how and why a specific object or method may be used. It also includes a special reference section dedicated to server-side JavaScript, coverage of JScript and Active Scripting, and a complete reference to browser-supported JavaScript.

1005537952
Pure JavaScript

Pure JavaScript, Second Edition is a substantial and focused reference for experienced Web developers. This book begins with an accelerated introduction to the newest features of JavaScript so that experienced Web developers can quickly understand the concepts of JavaScript and begin developing their own JavaScript solutions immediately.

Pure JavaScript, Second Edition contains concise descriptions of JavaScript forms, cookies, windows, and layers. Beyond the brief descriptions and short syntax snippets found in most references, this book also provides real-life, well-commented JavaScript examples for each documented object, property, method, and event handler. This not only helps the reader's understanding of the syntax, but also provides a contextual aid in determining how and why a specific object or method may be used. It also includes a special reference section dedicated to server-side JavaScript, coverage of JScript and Active Scripting, and a complete reference to browser-supported JavaScript.

39.99 In Stock

eBook

$39.99 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

Pure JavaScript, Second Edition is a substantial and focused reference for experienced Web developers. This book begins with an accelerated introduction to the newest features of JavaScript so that experienced Web developers can quickly understand the concepts of JavaScript and begin developing their own JavaScript solutions immediately.

Pure JavaScript, Second Edition contains concise descriptions of JavaScript forms, cookies, windows, and layers. Beyond the brief descriptions and short syntax snippets found in most references, this book also provides real-life, well-commented JavaScript examples for each documented object, property, method, and event handler. This not only helps the reader's understanding of the syntax, but also provides a contextual aid in determining how and why a specific object or method may be used. It also includes a special reference section dedicated to server-side JavaScript, coverage of JScript and Active Scripting, and a complete reference to browser-supported JavaScript.


Product Details

ISBN-13: 9780768685527
Publisher: Pearson Education
Publication date: 08/15/2001
Series: Pure Series
Sold by: Barnes & Noble
Format: eBook
Pages: 1608
File size: 18 MB
Note: This product may take a few minutes to download.

About the Author

R. Allen Wyke, of Durham, North Carolina is vice president of Research and Development at the eMarketing solutions company Engage, where he works with product managers, product marketing, and engineering to help ensure that their products have the proper vision and direction in both online and offline worlds. He has also developed intranet Web pages for a leading telecommunications and networking company, as well as worked on several Internet sites.

Wyke is the author of seven books on various Internet technologies including Perl, JavaScript, and PHP. In the past, he has also written the monthly Webmaster column for SunWorld, and a weekly article, "Integrating Windows and Unix," for ITworld.com.

Jason D. Gilliam is a software developer at ichat, Inc. At ichat, he develops Web-based chat and discussion group software using C++, JavaScript, HTML, and various other Internet technologies. In addition to his work at ichat, he has developed intranet Web pages and numerous C++ applications for a leading telecommunications company and has worked on several Internet sites for other organizations. Gilliam is also a contributing author to JavaScript Unleashed, Third Edition. He holds a bachelorÕs degree in Computer Engineering from North Carolina State University. Jason and his wife live in Cary, North Carolina.

Charlton Ting, of Vienna, Virginia is a software engineer for KOZ Inc who began programming in JavaScript with its first beta release. He has worked extensively with many Internet technologies while developing Internet telephony solutions at Lucent Technologies. His programming experience includes a variety of languages such as Java, C++, Smalltalk, Perl, HTML, XML, and Pascal. Ting holds degrees in Computer Engineering and Electrical Engineering from North Carolina State University.

Sean Michaels is a software engineer at Avesair, Inc. where he designs and implements next generation mobile commerce applications. He has been in the Internet space since 1994 and has a depth of experience in developing highly distributed fault tolerant applications. He has used Java, C++, and XML extensively over the years. Previously, he coauthored the Official Netscape ONE book and the Official Netscape Technologies Developer Guide from Netscape Press. Michaels holds a degree in Latin from Millsaps College in Jackson, MS and a degree in Computer Science from Mississippi College.

Read an Excerpt

Chapter 1: What Is JavaScript to a Programmer?

In the beginning, there were Assembly and compiled languages. Later came scripting languages such as sed, awk, and Perl, which many programmers used to perform a variety of tasks. Followed by, in the late 80s and early 90s, the Internet, which exploded into a technological revolution that allowed anyone with a modem to communicate and retrieve information from around the world. As the Internet grew in number of users, it was obvious that an increase in functionality was needed in the browsers and the data they were rendering.

HTML, even with its advantages, was falling short of providing the control many developers wanted when creating Web pages and applications. This prompted the use of server-side programs, or scripts as they were often called, to handle some of the page dynamics developers needed from their sites.

These programs helped Web developers by allowing them to increase a site's functionality as well as process user-submitted information. However, CGI, or common gateway interface, scripts had to generate and return a response when the user sent incorrect or incomplete information. This led to the unnecessary back-and-forth transmission of data between browser and server. But, overall, it was a minor price to pay for the functionality it provided.

With time, and an increase in traffic, it became increasingly obvious that client-side intelligence was needed to offload some of the CGI functionality. Something was needed to perform this error checking and to decrease the amount of time a user spent connecting to a server to validate data. This would also enable the Web site to offload some of its processing load to the browser machine, which meant an increase in the overall performance of a site.

It was partially this lack of client-side functionality and efficiency that helped spawn a new scripting language-one that could be executed within a browser's environment and not on the server. This language could be used to perform client-side tasks such as form validation and dynamic page content creation-one that would put the programming into HTML publishing. Welcome to the birth of JavaScript.

Welcome to JavaScript

On December 4, 1995, Netscape and Sun jointly introduced JavaScript 1.0, originally called LiveScript, to the world. This language, unlike its server-based predecessors, could be interpreted within the then new Netscape Navigator 2 browsers. As an interpreted language, JavaScript was positioned as a complement to Java and would allow Web developers to create and deploy custom applications across the enterprise and Internet alike. JavaScript gave Web developers the power to truly program-not just format data with HTML.

In addition to the client-side control developers desired, Netscape implemented serverside JavaScript. This allowed developers to use the same programming language on the server as they did in their pages for browsers. Database connection enhancements were added to the language (called LiveWire), allowing the developer to pull information directly from a database and maintain user sessions for common functionality such as shopping carts. JavaScript had truly bridged the gap between the simple world of HTML and the more complex CGI programs on the server. It provided a common language for Web developers to design, implement, and deploy solutions across their networks and distributed the overall processing load of their applications.

The next level of acceptance in the world of JavaScript was Microsoft's implementation of the language in its Internet Explorer 3 browser-the implementation was called JScript. Similar to Netscape, Microsoft also implemented the language on the serverside (JScript 2.0) within its ASP (Active Server Pages) environment. It also allowed developers the flexibility of using a common language on both the client and serverside, while providing many of the robust features, such as object invocation and usage, in compiled languages.

JavaScript Versus JScript, and What Is ECMAScript?

JScript 1.0 was based on the published documentation from Netscape, so essentially it is the same thing as JavaScript 1.0. However, there were a few "features" that Netscape did not publish, as well as some functionality that was not re-created by Microsoft correctly. The result of this is that there are some discrepancies between JScript 1.0 and JavaScript 1.0.

Since the release of these initial browsers, JavaScript and JScript were both submitted to the ECMA (European Computer Manufacturers Association) standardization body and have become the standard known as ECMAScript (ECMA-262). Because of this standardization, it is now considered that JavaScript is Netscape's implementation of ECMAScript while JScript is Microsoft's implementation.

The adoption of the first edition of ECMAScript occurred in June 1997 followed by its adoption by the International Organization for Standardization and International Electrotechnical Commission in April 1998 (ISO/IEC 16262). A second edition of the standard was approved by ECMA in June 1998, and a third edition was adopted in December 1999.

Note

Because Netscape's JavaScript was the foundation of all this, the book will refer to JavaScript, JScript, and ECMAScript simply as JavaScript except where a differentiation is needed.

So, what is JavaScript to the programmer? Well, in its purest form, it is an object-based, crossplatform, loosely-typed, multi-use language that allows a programmer to deploy many types of solutions to many clients. It not only involves adding functionality to Web pages as rendered within a browser, it also allows server-side processing for Netscape and Microsoft Web servers.

JScript has also been included in Microsoft's Windows Script Host (WSH), to allow programmers to write scripts to be executed on the operating system itself, and most recently as a major language under their .NET strategy (more on that later). When operating within the WSH environment, JScript is similar to the old DOS batch files, but gives programmers more functionality and versatility in what they can accomplish. This type of advancement has allowed the language to take hold in the computer world and continue to progress.

In addition to the benefits of these environments in which JavaScript can be executed, security measures are in place to protect end users against malicious code. Even though it is still young in terms of age, JavaScript is very mature and powerful. This functionality, ability, and versatility positions JavaScript as the best solution for many programmers.

Now that you've learned about what JavaScript is, you should dive a little deeper into what it means to a programmer. Being programmers ourselves, we know that a few strategically placed words do not make a language useful; so first, we'll look at the object-based characteristics of JavaScript.

Object-Based Technology

The fact that you are reading this reference somewhat implies that you have programmed in JavaScript or at least one other language before, even if only for one semester in college. Going one step further, I bet the language you programmed in was either C++, Java, or Perl-with each having various levels of object orientation (OO). Java specifically is 00 by virtue of having all programmer created objects extend from core Java language classes or their own....

Table of Contents

Introduction.

I. A PROGRAMMER'S OVERVIEW OF JAVASCRIPT.

1. What Is JavaScript to a Programmer?

Welcome to JavaScript. Object-Based Technology. Object-Oriented Programming. Security. Advantages of JavaScript. When to Use JavaScript. JavaScript Resources. Moving On.

2. Details of the Language.

Things to Know about JavaScript Syntax. Data Types and Variables. Operators. Loops and Conditionals. Functions. Moving On.

II. PROGRAMMING IN JAVASCRIPT.

3. Programming Techniques.

Pattern Matching. Events and Event Handlers. Exceptions. Debugging. Moving On.

4. Client-Side Scripting.

Supporting Browsers and Their Issues. Extended Browser Functionality. Form Processing. Cookie Handling. Windows in Action. Dynamic Documents. XML-Based User Interface Language (XUL). Moving On.

5. JavaScript on the Server-Side.

How Does Server-Side Differ from Client-Side? Netscape's Server-Side JavaScript. Microsoft's ASP Environment. Uses of Server-Side JavaScript. Moving On.

6. Windows Scripting.

Windows Script Host. Windows Script Components. Remote Scripting. Moving On.

III. JAVASCRIPT REFERENCE.

7. Core Language.
8. Client-Side.
9. Server-Side

Index.

From the B&N Reads Blog

Customer Reviews