Chapter 15.3.7. An Effects Demo

Two more packages have also been ported from Scriptaculous: DragAndDrop and Sortable. Both of these let you provide a drag-and-drop (DND) user interface for your application with a minimum of fuss. DND is an important user interface feature because certain types of UI problems are not solved gracefully through any other means on the web.

One example of this is an “ordered list of items.” Consider an election system where you don’t just pick a single candidate, but instead need to put the candidates in order of preference. The “old-fashioned” way to do this in a web browser was a setup involving a “select multiple” control and up and down buttons. You’d select someone from the list and repeatedly ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.