Chapter 3. JavaScript for Ajax developers

 

In this chapter:

  • JavaScript basics
  • The JSON data format
  • Object-oriented patterns in JavaScript
  • Reflection on client objects
  • Exposing events in JavaScript objects

Established in 1995 and initially integrated into the Netscape Navigator browser, JavaScript was capable of validating web-page user input without refreshing. Microsoft later packaged its own version, JScript, in Internet Explorer 3.0. In the following years, the language evolved, and developers began using it in conjunction with the Document Object Model (DOM) for Dynamic HTML pages. In 1998, the language was standardized as ECMAScript to facilitate the release of different versions.

Some JavaScript characteristics (weak typing, prototyping, the use of first-class functions), although typical for functional languages, may scare a programmer who works mostly with an object-oriented language like Java or C#. On the other hand, JavaScript has been used effectively to write complex and extraordinary client controls. You’ll soon discover why JavaScript is now the language of choice among Ajax developers.

3.1. Working with objects

 
 

3.2. Working with JSON

 
 
 

3.3. Classes in JavaScript

 
 

3.4. Understanding inheritance

 

3.5. Understanding interfaces and enumerations

 
 
 

3.6. Using type reflection

 
 

3.7. Working with events

 
 
 
 

3.8. Summary

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest