Chapter 5. Data Binding and Validation


Data binding is the means by which data is bound to a control (that is, to an HTML page element), typically so that it can be displayed to the user. With data binding, for example, you can tie the contents of a text box to a label element, or transform the data a user enters into something else (for instance, HTML) and process it further. Very often, data binding is done using data from a database. Although this chapter covers the basics of Atlas data binding, Chapter 9 explains how to use Atlas to access data on the server.

The examples in the previous chapter did not use declarative code, which is one of the advantages of a framework like Atlas. Also, we found it necessary to use one or two hacks, such as using setInterval() to keep two HTML elements in sync. In this chapter, you'll learn xml-script, declarative markup that ships with current prerelease versions of Atlas.




Programming Atlas
Programming Atlas
ISBN: 0596526725
EAN: 2147483647
Year: 2006
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net