Some of the information here may be outdated, please check the book instead
[edit]

Just add this to your layout after the include 'web2py_ajax.html'

<script><!--
$(document).ready(function(){
    $('.delete').attr('onclick','if(this.checked) 
    if(!confirm("Sure you want to delete this object?")) this.checked=false;');
});
//--></script>

Will work on all your forms.

© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.