Book description
Ajax is taking us into the next generation of web applications. Ajax has broken the client-server barrier by decoupling the client from the server, but an Ajax application still needs a server to extract content from. The most effective use of Ajax and the server requires an understanding of REST, an architectural style used to define Web services.
Ajax Patterns and Best Practices explores dynamic web applications that combine Ajax and REST as a single solution. A major advantage of REST is that, like Ajax, it can be used with today's existing technologies.
This is an ideal book whether or not you have already created an Ajax application. Because the book outlines various patterns and best practices, you can quickly check and verify that you're building an efficient Ajax application.
Inside the book, the patterns will answer the following questions:
What is Ajax, and REST, and why do you even care? And if I should care what are some examples of websites that make effective use of Ajax and REST?
What are the absolute basics of Ajax and REST and what parts of those basics should I use?
How should deal with large amounts of data? Should I cache the data? Should I get the data piece fed to me? (Patterns: Cache Controller, and Infinite Data)
People keep telling me that sessions and cookies are bad? Are they bad? What should I do? And while I think about how about generating content for other devices? (Permutations pattern)
I want to fix the back-button problem of the HTML browser. (State Navigation pattern)
What is the best way to create a mashup? (REST Based Model View Controller pattern)
My page has so many links managed by JavaScript, and I am losing control, help me make this more organized! (Decoupled Navigation pattern)
I understand that HTTP means I send data to the server, how about the server sending me some data without asking for it? (Persistent Communications pattern)
My server side code looks like a mess with tags and code pieces everywhere. How can I organize and make my HTML page behave like a SOA client and use REST based web services? (Content chunking pattern)
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 1. Introduction to Ajax
-
2. The Nuts and Bolts of Ajax
-
2.1. Ajax for the Impatient
- 2.1.1. Understanding REST Theory
- 2.1.2. Implementing the REST Data
- 2.1.3. Implementing the Ajax Application
- 2.1.4. Putting Together Ajax and REST
- 2.1.5. Understanding the Ramifications of Ajax and REST
- 2.1.6. XMLHttpRequest Details
- 2.1.7. Using the Factory Pattern
- 2.1.8. Defining an XMLHttpRequest Factory
- 2.1.9. Rewriting the Ajax Application to Use a Factory
- 2.2. Making Asynchronous Requests
- 2.3. Making Practical Use of XMLHttpRequest
- 2.4. Some Final Thoughts
-
2.1. Ajax for the Impatient
- 3. Content Chunking Pattern
- 4. Cache Controller Pattern
- 5. Permutations Pattern
- 6. Decoupled Navigation Pattern
- 7. Representation Morphing Pattern
- 8. Persistent Communications Pattern
- 9. State Navigation Pattern
- 10. Infinite Data Pattern
- 11. REST-Based Model View Controller Pattern
Product information
- Title: Ajax Patterns and Best Practices
- Author(s):
- Release date: February 2006
- Publisher(s): Apress
- ISBN: 9781590596166
You might also like
book
Ajax in Action
Web users are getting tired of the traditional web experience. They get frustrated losing their scroll …
book
Ajax for Web Application Developers
Reusable components and patterns for Ajax-driven applications Ajax is one of the latest and greatest ways …
book
Understanding AJAX: Using JavaScript to Create Rich Internet Applications
AJAX: fast mastery for experienced Web developers! Already an experienced Web developer? Apply your skills in …
book
Ajax on Java
This practical guide shows you how to make your Java web applications more responsive and dynamic …