Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. Controls > Introducing Atlas Client Controls

4.1. Introducing Atlas Client Controls

Atlas implements its client controls in the Sys.UI namespace. Sys.UI is the client-side equivalent of the similarly named and well-known Web.UI namespace in ASP.NET.

In older Atlas releases, the client-side namespace was named Web.UI, as well.


Sys.UI contains a large number of Atlas HTML controls and web controls. The functionality of Atlas controls is similar but not identical to ASP.NET server controls. Atlas controls provide a consistent, browser-independent model that enables JavaScript code to access and change client controls properties, something that with non-Atlas controls would require quite a bit of JavaScript knowledge as well as some workarounds for browser inconsistencies.

Table 4-1 lists controls provided by Atlas. The table lists the HTML elements that the Atlas control works with and the equivalent DOM object or method that you would use in JavaScript.

Table 4-1. Atlas controls
Atlas controlDescriptionHTML elementJavaScript equivalent
Sys.UI.WindowImplements JavaScript pop-up windowsN/Awindow.alert(), window.confirm(), window.prompt()
Sys.UI.LabelImplements a span or label element<span>, <label>label
Sys.UI.ImageImplements an image<img>image
Sys.UI.HyperLinkImplements a link<a href="...">link
Sys.UI.ButtonImplements a button<input type="button">, <input type="submit">, <input type="reset">, <button>button, submit, reset
Sys.UI.CheckBoxImplements a checkbox<input type="checkbox">checkbox
Sys.UI.SelectImplements a selection list<select>select
Sys.UI.TextBoxImplements a text field<input type="text">, <input type="password">, <textarea>text, password, textarea