O'Reilly logo

Instant Lift Web Applications How-to by Torsten Uhlmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Ajax (Simple)

Building responsive applications will, no doubt, lead you into the arms of Ajax. Ajax (Asynchronous JavaScript and XMLhttp://en.wikipedia.org/wiki/Ajax_(programming)) is the technology that enabled Web 2.0, and it sure will add considerable value to your applications.

Getting ready

In many other web frameworks you might have come across the logic of an Ajax call starting on the client. You would use jQuery, for instance, to create XMLHttpRequest, call some URL on the server, and feed the server's result into a callback and process it.

With Lift, the Ajax call is also initiated on the client side of course, but it appears different. In Lift you use CSS selectors to bind Ajax functionality to frontend elements. Once you get this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required