RJS templates for Rails /
RJS templates are an exciting and powerful new type of template added to Rails 1.1. Unlike conventional Rails templates that generate HTML or XML, RJS templates generate JavaScript code that is executed when it is returned to the browser. This JavaScript generation allows you to perform multiple pag...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[Sebastopol, Calif.] :
O'Reilly,
2006.
|
Colección: | O'Reilly short cuts.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Introduction; What Is RJS?; Who Should Read this Document?; Rails Version; Acknowledgments; Getting Started with a Simple Application; RJS and Rails; Debugging; Development Mode Debugging; Monitoring the Logfile; ActionController; Default View; Layouts; Rendering; Inline Rendering; Browser Redirection; ActionView; Element, Class, and Collection Proxies; Element Proxies; Class Proxies; Collection Proxies; Making Ajax Calls with Rails; Helpers; RJS in Practice: The Expense Tracker; Creating the Models; Defining the Controllers; Setting Up a Route; Creating an Application Layout
- Entering Some DataCreating the Views; What We Have So Far; FireBug: Awesome JavaScript Utility; What Is FireBug?; Installation; A Brief Tour; Enhancing the Expense Tracker; Ajax Activity Indicator; Ajax Global Responders; Model Validations; Adding Some Calculations; Refactoring with RJS Helpers; A Look Ahead; RJS Reference; JavaScriptGenerator; JavaScriptElementProxy; JavaScriptCollectionProxy; Block Variables and the Enumerable methods; Inspecting the Results of the Enumerations; Method Reference; Visual Effects; Appendix; Bibliography; Online Resources; Prototype; Scriptaculous; RJS