SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 123 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

UI also includes three enumerations accounting for some key events of DOM
elements. These enumerations are also used as properties in the Sys.UI.DomEvent class.
These enumerations are listed in Table 4-15.
Table 4-15. Enumerations of the Sys.UI Namespace
Enumeration Description
Key Key codes. Values include nonalphanumeric keys (e.g., up, right, down,
backspace, home, space, end, etc.).
MouseButton Mouse button locations (leftButton, middleButton, rightButton).
VisibilityMode Layout of a DOM element in the page when the element??™s visible
property is set to false. Allowed values are hide and collapse.
CHAPTER 4 ?–  ASP.NET AJAX CLIENT LIBRARIES 71
Sys.UI.DomElement
The Sys.UI.DomElement and the Sys.UI.DomEvent, which we??™ll look at later, are both classes
designed to provide better, more consistent, and browser-agnostic access and handling
of DOM elements in the browser. With one programming interface, you can reliably work
with all major browsers (IE, Firefox, Opera, Safari). Before looking at an example, take a
look at the methods of the Sys.UI.DomElement class as shown in Table 4-16.


Pages:
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135