ADBRITE ads links
You are here: CodeIdol.com > Ajax > Ajax for Web Application Developers > Object Oriented JavaScript
Ajax for Web Application Developers
| Chapter 5. Object-Oriented JavaScript
Object-oriented JavaScript is essential when building large-scale Ajax applications. This approach to programming lends reusability, scalability, and flexibility to our applications. Object-oriented appr...
|
|
| Object-Oriented Approaches
As I have already mentioned, there are many different ways to approach object-oriented programming with JavaScript. You can create objects or pseudo-objects with any of the following:
Object constructorsPrototypesThe ...
|
|
| Object Constructors
Object constructors are a great way to structure objects so that they are reusable, without having to create or redefine a completely new object when there is a slight difference from one to another. This method of object creat...
|
|
| Prototypes
The prototype object was introduced in JavaScript 1.1 as an intrinsic object that simplifies the addition of custom properties and methods to existing objects. When we begin to create objects and prototypes, we are getting into the real...
|
|
| Using the new Operator
Using the new operator is probably one of the simplest approaches to creating objects in JavaScript because, of course, it is the native way of doing so. In order to create an object using JavaScript's native new operator, w...
|
|
| Literal Notation
Literal notation is a more complex way of defining objects with JavaScript and is supported in JavaScript 1.2 and above. This approach is a sort of shorthand way of creating objects, which makes them easy to build but a bit hard t...
|
|
| Associative Arrays
Associative arrays are defined as any other array is defined, but strings are inserted in place of numbers as indexes. This solution allows us to call an item in an array by name rather than by an index number, which obviously m...
|
|
| JScript.NET
JScript.NET enables us to create full-fledged .NET applicationsas if we were using a language such as C# or VB.NETby compiling our code into Intermediate Language (IL). One of the great things about this method is that it allows us to ...
|
|
You are here: CodeIdol.com > Ajax > Ajax for Web Application Developers > Object Oriented JavaScript
|
|
Related tags
Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......
|
|