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 277 | Next

Jonathan Snook, Aaron Gustafson, Stuart Langridge, and Dan Webb

"Accelerated DOM Scripting with Ajax, APIs, and Libraries"

If the highlighted
state of the selected section needs to be changed you can simply point the designer at the
highlighted style rules in the CSS. Similarly, if all the content is in the HTML, a nontechnical
team member can make changes to copy without going near the JavaScript. Finally, if all the
content is with HTML, you can ensure that the user still has access to that content, even if
JavaScript is not working.
Using CSS Selectors As Application Glue
CSS selectors are incredibly good at their job of selecting elements to apply style properties
to in CSS, and now all the major JavaScript libraries have really solid implementations that
are becoming faster and faster all the time, as well as supporting more of the CSS standard
than the built-in browser versions. This means that CSS selectors can now not only be used
to glue style to your documents but also to glue JavaScript behavior. Low Pro behaviors are
one of several frameworks that automate this process, giving you what is essentially a style
sheet for behavior.
The main advantage of attaching JavaScript in this way is that you can decouple your
application code from the document itself. In this project, for example, you used LowPro to
wire a call to Help.openWith() (from the application code) to links with rel="help". If you
want to change it (to use class="help" instead, for instance), it??™s very easy to change. In fact,
it can be so simple that designers in your team can update it.


Pages:
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6