O'Reilly logo

Lift Application Development Cookbook by Gilberto T. Garcia Jr.

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

Creating an Ajax form

We have seen how to create forms and validate them using Lift, and that is really neat. However, your application still has to reload the entire page to submit the forms and get a response from the server.

Things don't have to be this way! Lift is very flexible and provides a mechanism to add Ajax support into forms. In other words, we can build Ajax forms easily and thus not have to reload the whole page just to submit a form. In this recipe, we will learn how to create a form and submit it using Ajax.

Getting ready

We are going to change the form we built in the Creating forms recipe from a regular form to an Ajax form.

How to do it...

You can create an Ajax form by performing the following steps:

  1. Remove the div tag that invokes ...

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