Dave, you are right. I want to process the form normally and then, after 
pressing the button, I would like to get a new tab (also a popup would be 
fine).
Thanks
Carlo 

On Thursday, April 17, 2014 8:21:45 PM UTC+2, Dave S wrote:
>
>
>
> On Thursday, April 17, 2014 8:26:58 AM UTC-7, Oli wrote:
>>
>>  
>> URL('Link for a new tab', _class="btn" , _title=T("in a new tab"), 
>> _href=URL("default","yourcontroller",args=[row.id]), *_target='_blank'*)
>>
>
> I may be missing something, but this looks like it makes a button that 
> when pressed goes direct to a new tab.  I think csavorgn wanted to process 
> the form normally, using the button to submit it, but to have a new tab (or 
> popup?) for the post-processing destination.  Am I off track here?
>
> /dps
>
>  
>
>>
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to