Are you using an old browser? I don't think this is a problem in modern 
browsers.

Anthony

On Sunday, February 7, 2016 at 12:32:03 AM UTC-5, ..mg.. wrote:
>
> Hi! 
>
> I'm trying to run a simple web2py (2.13.4-stable) form from links 
> (2.8/2.12), 
> and I've found a strange bug. 
>
> web2py's form.accepts is failing because the formkey and formname fields 
> aren't being submitted.  links isn't submitting those fields because 
> web2py is wrapping them in a <div style="display:none;">. 
>
> Replacing my line 2183 in gluon/html.py, in FORM.hidden_fields: 
>
>         return DIV(c, _style="display:none;") 
>
> with 
>
>         return DIV(c) 
>
> fixes the problem for me. 
>
> I'm wondering:  what's the reason behind the "display: none;" there?  I 
> can understand the browser not submitting them on security concerns, but 
> I'm ignorant of what the specs say about this corner case. 
>
> Best, 
>
> -mg 
>   
>

-- 
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.

Reply via email to