On Tue, Apr 14, 2009 at 1:13 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote:
> > On Tue, Apr 14, 2009 at 10:49 AM, mdipierro <mdipie...@cs.depaul.edu> > wrote: > > with "press the return button in my browser," do you mean the "back" > > button? > > > > I am not sure how to avoid this. Any advice? > > It's a "Django way of develop" that I like. Django's manual teach some > good Web programming practices. :-) and exactly what web2py admin does too... > > > You can do this creating a controller to show the form, other to get > information (in web2py, we use the same) and after processing > information received (with form.accepts()), you have to redirect user > to other page (it can be the same controller with other args, like > msg='Your app were created' and it can do > response.flash=request.args[0]). On creating new app, you get put in the same site admin page (seems appropriate) AND response.flash is displayed (fill page width, BRIGHT orange) at the top of the (reloaded) page: New application "xxxx" created What would you like different? > > > So, the good way to do is always redirect user to other page after > process a form. Never show information in same page that was requested > as a POST method - this page has to process data and redirect. > > -- > Álvaro Justen > Peta5 - Telecomunicações e Software Livre > 21 3021-6001 / 9898-0141 > http://www.peta5.com.br/ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---