-
Book Overview & Buying
-
Table Of Contents
Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained
The Function class (Figure A-7) provides basic features for functions and it is used throughout the library.
![]() |
Figure A-7 Function
Static method that represents an empty function.
Static method that validates a list of parameters against of list of JSON objects representing the validation rules.
arguments – Array of parameters to be validated.
expectedParams – Array of JSON objects describing the validation rules for the arguments.
The method return an Error message if the arguments do not validate.
Each JSON object contains a validation rule for a parameter. The JSON object is a dictionary of keys and values.
The list of keys that can be used is given in the following table:
|
Key |
Description |
|---|---|
|
|
The name of the parameter |
|
|
The allowed type for this parameter (examples: |
|
|
Boolean value indicating whether this parameter can be passed as |
Change the font size
Change margin width
Change background colour
