Online Training
Microsoft AJAX Library Essentials
Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained By Cristian Darie, Bogdan Brinzarea. A practical tutorial to enhancing the user experience of your ASP.NET web ...
Concepts of Object-Oriented Programming
Object-Oriented JavaScript In this chapter, you'll learn about OOP (Object-Oriented Programming) and how it relates to JavaScript. As an ASP.NET developer, you probably have some experience working with objects, and you may even be familiar with concepts such as inheritance.
Microsoft AJAX Library - Object-Oriented JavaScript
Object-Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C#, VB.NET, Java, or C++. However, when it comes to using them, you'll feel on familiar ground.
Microsoft AJAX Library - JavaScript Functions
JavaScript Functions A simple fact that was highlighted in the previous chapter, but that is often overlooked, is key to understanding how objects in JavaScript work: code that doesn't belong to a function is executed when it's read by the JavaScript interpreter...
Microsoft AJAX Library - Functions as Variables
Functions as Variables In JavaScript, functions are first-class objects. This means that a function is regarded as a data type whose values can be saved in local variables, passed as parameters, and so on.
Microsoft AJAX Library - Anonymous Functions
Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function. Although this can hinder readability when the function is more complex, you can do this if you don't intend to reuse a function's code.
Microsoft AJAX Library - JavaScript Classes
JavaScript Classes Not only can JavaScript functions contain other functions, but they can also be instantiated. This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object-oriented programming.
Microsoft AJAX Library - C# and JavaScript Classes
C# and JavaScript Classes For the purpose of demonstrating a few more OOP-related concepts, we'll use another class. Our new class is named Table, and it has two public fields (rows, columns), and one method, getCellCount().
Microsoft AJAX Library - Associative Arrays
Thinking of Objects as Associative Arrays A key element in understanding JavaScript objects is understanding the notion of associative arrays, which are nothing more than collections of (key, value) pairs.
Microsoft AJAX Library - Creating Object Members on the Fly
Creating Object Members on the Fly One major difference between OOP in C# and ASP.NET, and OOP in JavaScript, is that JavaScript allows creating object members "on the fly". This is true for objects and classes that you create yourself ...
Microsoft AJAX Library - JavaScript Execution Context
JavaScript Execution Context In this section we'll take a peek under the hood of the JavaScript closures and the mechanisms that allow us to create classes, objects, and object members in JavaScript.
Microsoft AJAX Library - Inheritance using Closures
Inheritance using Closures and Prototypes There are two significant techniques for implementing the OOP concept of inheritance with JavaScript code. The first technique uses closures, and the other technique makes use of a feature of the language named prototyping.
Microsoft AJAX Library - Inheritance using Prototypes
Inheritance using Prototypes Once again, prototyping can help us implement an OOP feature in a more elegant way than when using closures. Prototype-based inheritance makes use of the behavior of JavaScript prototypes.
Microsoft AJAX Library - Introducing JSON
Introducing JSON In AJAX applications, client-server communication is usually packed in XML documents, or in the JSON (JavaScript Object Notation) format. Interestingly enough, JSON's popularity increased together with the AJAX phenomenon...