Namespace:
Global namespace-extends the ecmascript (JavaScript) Base Object. Contains extensions of the Javascript array, Boolean, error, number, object, and string types.
Sys namespace-root namespace, which contains all important classes and base classes.
SYS. Net namespace-the types contained are related to the communication between ASP. Net Ajax client applications and web services on the server.
SYS. serialization namespace-the types included are related to the data serialization of ASP. NET Ajax client applications.
SYS. Services namespace-contains types that provide access to client scripts for ASP. NET authentication service, configuration file service, and other application services.
SYS. UI namespace-contains types related to the User Interface (UI), such as controls, events, and UI attributes in Microsoft Ajax library.
SYS. webforms -- The namespace contains the types related to partial page rendering in Microsoft Ajax library.
Supported:
Microsoftajax. JS: core library
Microsoftajaxtimer. JS: Customer timing component used by the timer Server Control
Microsoftajaxwebforms. JS: updatepanel Server Control supports partially updated classes
Client page lifecycle:
SYS. application. add_init (fun)-> SYS. application. add_load (fun)-> SYS. application. add_unload (fun)
Global shortcuts for common APIs
|
Name |
Description |
| SYS. UI. domevent $ addhandler Method |
Provides a shortcut for SYS. UI. domevent. addhandler to add a DOM event handler to the DOM element of the public event.
Syntax: $ addhandler (element, eventname, Handler );
Example: $ addhandler ($ get ("button1"), "click", processeventinfo ); |
| SYS. UI. domevent. $ addhandlers Method |
Provides a shortcut for the SYS. UI. domevent addhandlers method. This method adds a list of DOM Event Handlers to the DOM element of the public event.
Syntax: $ addhandlers (element, events, handlerowner );
Example: $ addhandlers ($ get ("button1"), {Click: processeventinfo, Mouseover: processeventinfo, mouseout: processeventinfo}, this ); |
|
SYS. UI. domevent. $ clearhandlers Method |
SYS. UI. domevent clearhandlers method, which removes the Sys from the DOM element. UI. domevent addhandler or sys. UI. all DOM Event Handlers added by the domevent addhandlers method.
Syntax: $ clearhandlers (element );
Example: $ clearhandlers ($ get ("button1 ")); |
|
SYS. Component $ create Method |
Provides a shortcut for the SYS. component. Create method. This method creates and initializes components of the specified type.
Syntax: $ create (type, properties, events, references, element );
Example: $ create (mycontrol, {ID: 'c1', visible: true}, {Click: showvalue}, null, $ get ('button1 ')); |
|
SYS. Application $ find Method |
Provides a shortcut for the SYS. application. findcomponent method. This method returns the specified component object.
Syntax: var o = $ find (ID, parent );
Example: If (! ($ Find ('mycomponent', div1) {div1.innerhtml = 'mycomponent is not available .';} |
|
SYS. UI. domelement $ get Method |
Provides a shortcut for the getelementbyid method. This method returns an array consisting of all components registered to the application using the addcomponent method.
Syntax: $ get (ID, element ); |
|
SYS. UI. domevent $ removehandler Method |
Provides a shortcut for the system. UI. domevent. removehandler method. This method removes a DOM event handler from the DOM element of the public event.
Syntax: $ removehandler (element, eventname, Handler );
$ Removehandler ($ get ("button1"), "click", processeventinfo ); |
Javascript-based Type Extension
|
Name |
Description |
|
Array Type Extension |
The basic JavaScript Array Function is extended by adding static methods. |
|
Boolean Type Extension |
Provides extensions to basic JavaScript Boolean objects. |
|
Date Type Extension |
Provides extensions to basic JavaScript date objects. |
|
Error Type Extension |
By providing exception details and support for application compilation modes (debugging or release), a static function with built-in JavaScript error type is provided. |
|
Number Type Extension |
Use static and instance methods to expand the basic JavaScript number function. |
|
Object Type Extension |
Provides extension functions similar to reflection to basic JavaScript Object objects. |
|
String type Extension |
The basic javascript string function is extended using static and instance methods. |
Type
|
Name |
Description |
|
Type |
Provides a type and type reflection system for JavaScript object-oriented programming. |