Chapter 6. Components and Behaviors


Handling events with script code or markup can be a practical way to create user experiences that are more interactive, but sometimes this approach just requires too much code. This is especially true when you wish to tie a specific action to a particular control, such as one that is a reaction to a user clicking or hovering over it. Fortunately, Atlas offers a viable alternative that will be covered in this chapter.

Two new concepts are introduced in this chapter: Atlas components and Atlas behaviors. Whereas Atlas behaviors contain JavaScript functionality and are always tied to HTML elements that are visible on the page, Atlas components (also consisting of JavaScript) might or might not have a graphical representation. One example of this is the Timer control, an instance of a component, which is not represented graphically on the page, as you'll see when it is discussed in Chapter 1.

In this chapter, we will cover the behaviors and components that ship with Atlas and how to use them.




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