CARVIEW |
Ajax on Rails
Build Dynamic Web Applications with Ruby
- By
- Scott Raymond
- Publisher:
- O'Reilly Media
- Released:
- January 2007
- Pages:
- 352
Learn to build dynamic, interactive web applications using the two most important approaches to web development today: Ajax and the phenomenally efficient Ruby on Rails platform. This book teaches you how to use both Ajax and Rails to quickly build high-performance, scalable applications without being overwhelmed with thousands of lines of JavaScript code. More than just recipes, you'll also get a thorough, low-level understanding of what's happening under the hood.
Learn to build dynamic, interactive web applications using the two most important approaches to web development today: Ajax and the phenomenally efficient Ruby on Rails platform. This book teaches intermediate to advanced web developers how to use both Ajax and Rails to quickly build high-performance, scalable applications without being overwhelmed with thousands of lines of JavaScript code. More than just recipes, you also get a thorough, low-level understanding of what's happening under the hood.
- Ajax on Rails includes three fully worked out Rails/Ajax applications, and quick reference sections for Prototype and script.aculo.us.
- Testing lessons show you how to eliminate cross-browser JavaScript errors and DOM debugging nightmares using a combination of Firebug, and Venkman.
- Advanced material explains the most current design practices for Ajax usability. You'll learn to avoid user experience mistakes with proven design patterns.
Beyond the how-to, Ajax on Rails helps you consider when Ajax is (and isn't) appropriate, and the trade-offs associated with it. For those new to Rails, this book provides a quick introduction, the big picture, a walk through the installation process, and some tips on getting started. If you've already started working with Rails and seek to deepen your skill set, you'll find dozens of examples drawn from real-world projects, exhaustive reference for every relevant feature, and expert advice on how to "Ajaxify" your applications.
-
Chapter 1 Introduction
-
Who This Book Is For
-
What Ajax Is
-
What Rails Is
-
‘You Got Your Ajax in My Rails!’
-
Getting Up to Speed
-
Summary
-
-
Chapter 2 Getting Our Feet Wet
-
The Old-Fashioned Way
-
JavaScript Libraries and Prototype
-
Bringing Rails into the Picture
-
Summary
-
-
Chapter 3 Introducing Prototype
-
Setting the Stage
-
Ajax Links
-
Forms
-
Ajax Forms
-
Buttons
-
Form Observers
-
Summary
-
-
Chapter 4 Introducing script.aculo.us
-
Visual Effects
-
Drag and Drop
-
Summary
-
-
Chapter 5 RJS
-
Instructions Instead of Data
-
Putting the R in RJS
-
A Real-World Example
-
Summary
-
-
Chapter 6 Ajax Usability
-
Principles of Usability
-
The Context of the Web
-
Usability on the Web
-
Cross-Platform Development
-
Summary
-
-
Chapter 7 Testing and Debugging
-
Debugging
-
Testing
-
Summary
-
-
Chapter 8 Security
-
Healthy Skepticism: Don’t Trust User Input
-
Hashing Passwords
-
Silencing Logs
-
The Same-Origin Policy
-
The Use and Abuse of HTTP Methods
-
Encryption and Secure Certificates
-
The Rails Security Mailing List
-
Summary
-
-
Chapter 9 Performance
-
Development and Production Environments
-
Session Stores
-
Output Caching
-
Asset Packaging
-
Dealing with Long-Running Tasks
-
Summary
-
-
Chapter 10 Prototype Reference
-
Ajax Support
-
DOM Manipulation
-
Core Extensions
-
-
Chapter 11 script.aculo.us Reference
-
Visual Effects
-
Drag and Drop
-
Controls
-
Element Extensions
-
DOM Builder
-
JavaScript Unit Testing
-
Utility Methods
-
-
Chapter 12 Review Quiz
-
Chapter 13 Photo Gallery
-
Chapter 14 Intranet Workgroup Collaboration
-
Colophon

- Title:
- Ajax on Rails
- By:
- Scott Raymond
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- January 2007
- Ebook Release:
- December 2008
- Pages:
- 352
- Print ISBN:
- 978-0-596-52744-0
- | ISBN 10:
- 0-596-52744-6
- Ebook ISBN:
- 978-0-596-15838-5
- | ISBN 10:
- 0-596-15838-6
-
Scott Raymond
Scott Raymond is a Ruby on Rails developer living in Kansas City. His work has been highlighted on the Rails website and the Wall Street Journal Online. Besides participating in the framework's development, he has led international Rails training sessions, and was a presenter at RailsConf 2006.
The animal on the cover of Ajax on Rails is a Peruvian spider monkey (Ateles chamek), also known as a black-faced spider monkey. Native to the tropical forests of Peru, Bolivia, and Brazil, this spider monkey weighs about 15 pounds (6.8 kg) and lives 30 to 40 years. The black-faced spider monkey's body, arms, and legs each measure about 20 inches, but its prehensile tail can be as long as 30 inches. The prehensile tail acts as an extra hand and can support the weight of the monkey when it needs to pick fruit with two hands or swing from tree to tree. The tail has a section of fleshy pads that it uses for grasping and feeling, which is crucial since spider monkeys are one of the only primates that do not have opposable thumbs; biologists believe the thumb impeded the spider monkey's ability to swing from branch to branch and was evolutionarily eliminated. The spider monkey's diet is 80 percent fruit, but depending on the season it also eats insects, leaves, and seeds. Even though the black-faced spider monkey is fairly common, deforestation has shrunk its livable habitat, and it is often a target for hunters as well as pet traders.
![]() ©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |