Chapter 9. AJAX, wiring, and Comet

 

This chapter covers

  • Lift’s JavaScript abstraction
  • Using AJAX controls
  • AJAX wiring
  • Server-push with CometActors

 

This chapter covers Lift’s advanced support for AJAX, connected AJAX components, known as wiring, and Comet, or server-push architectures. Creating highly interactive content with Lift is often easier or more intuitive than creating “normal” web applications. Pretty much everything in Lift’s interactive toolkit boils down to writing Scala functions, and AJAX is no different. As Harry Heymann, the lead engineer from Foursquare.com, puts it, “Writing AJAX style code is actually easier in Lift than writing traditional forms... All web programming should work like this.”[1]

1 Harry Heymann, “

Get Lift in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.