Apress Cyber Monday SALE

Comet and Reverse Ajax

The Next-Generation Ajax 2.0

By Phil McCarthy , Dave Crane

  • eBook Price: $17.99
  • Print Book Price: $24.99
Buy eBook Buy Print Book

Comet and Reverse Ajax Cover Image

Written by Ajax expert and best-selling author Dave Crane, this book is a practical, hands-on resource for developers who want to preview and even use some of what will likely be in the next hot Ajax 2.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-59059-998-3
  • 100 Pages
  • User Level: Beginner to Advanced
  • Publication Date: October 5, 2008
  • Available eBook Formats: PDF

Related Titles

  • Pro CSS3 Layout Techniques
  • Pro Marketing and Search Engine Optimization
  • Introducing Meteor
  • Migrating from Drupal to Backdrop
  • Joomla! 3 SEO and Performance
Full Description

One of the most basic laws of a web application is that the client, not the server, must initiate any communication between the two. There are a number of common–use cases where, ideally, the server would like to talk to the client—dashboards and monitoring apps, chat rooms and other collaborations, and progress reports on long–running processes. Comet (a.k.a. Reverse Ajax) provides a mechanism for enabling this. Comet is moderately complex to implement. But this practical, hands–on book gets you going.

  • In Part 1 of this book, we start by examining the use cases, and look at the simple alternatives to Comet and how far they can satisfy your needs. In some situations, though, only Comet will do.
  • In Part 2, we demonstrate how to set up and run a Comet–based application.

With this book, be a part of the next generation, Ajax 2.0.

What you’ll learn

  • Find out what Comet is and the trouble with HTTP
  • See how to achieve push, polling, piggy–backing, raw sockets, and more
  • Explore some common use cases and a worked example on "magnetic poetry."
  • Understand what some issues and techniques are including the two–request limit, pub–sub and server architectures, and continuations vs. native Comet
  • Use implementations of Comet, including Cometd/Bayeaux, Reverse Ajax in DWR, and more
  • Work through the final example using DWR Framework

Who this book is for

This firstPress title is for Ajax developers who are intrigued by Comet/Reverse Ajax, key to the next generation Ajax 2.0.

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published