-
Book Overview & Buying
-
Table Of Contents
Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained
The Microsoft AJAX Library base classes are: Array, Boolean, Date, Error, Number, Object, and String. For detailed reference, apart from Appendix A, we recommend that you check the cheat sheets published at
http://aspnetresources.com/
. The complete links are too long to type, but you can easily find them googling for “microsoft ajax cheat sheet”.
You create objects of a base class the same way you create other kinds of objects. For example, here’s how you create an array of three string elements:
var myArray = new Array("one", "two", "three");JavaScript’s loose typing, although admittedly feeling a bit unnatural to many .NET programmers, has its advantages when it comes to coding flexibility. For example, you can create arrays containing objects of any type. Moreover, each array element can be of any type. The flip side is that you need to be careful when the data type is not clear. For example, take this array:
var myArray = new Array("12/23/1980");...
Change the font size
Change margin width
Change background colour