def yourpage(): form = SQLFORM.confirm('are you sure?') if form.accepted: redirect(.....) return dict(form=form)
On Thursday, 12 September 2013 15:47:18 UTC-5, Ruud Schroen wrote: > > Hi, > > I'm currently building my own blog system, and i have a function which > allows a post to be deleted by its poster. But i would like web2py to > prompt a windows first saying "Are you sure?" > > When you click yes it should delete the item, if you click no.. then > nothing happens > > How would i go about doing this? Can i do this in the controller, or do i > need javascript/jquery? > > Thnx in advance > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.