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 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.