URL('Link for a new tab', _class="btn" , _title=T("in a new tab"), _href=URL("default","yourcontroller",args=[row.id]), *_target='_blank'*)
Am Donnerstag, 17. April 2014 09:41:35 UTC+2 schrieb csavorgn: > Hi, > I'm using a SQLFORM.factory to let the user enter some data and I added a > button using > > buttons=[INPUT(_type="submit",_value="Go!")] > > When "Go!" is pressed a new page is opened using the following code: > > if form.process().accepted: > redirect(URL("default","go", vars=dict(name=form.vars.name))) > > Is there a way to open the page ".../default/go?name=carlo#" in a new tab? > Thanks > Carlo > -- 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/d/optout.