O'Reilly logo

Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites by Gigi Sayfan, Kevin Dangoor, Mark Ramm

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

Chapter 9.3.2. Using Ajax to Update Project Status and Descriptions

Right at the top of our template body, we see the project name, description, and project status edit box.

These are created with the following code from the template:

As you can see, the update_project function is called whenever the status is changed. This same function is called whenever the description or project contact is updated, so let’s take a closer look at it now:

This little JavaScript function uses several MochiKit helpers ...

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