Hi, Derek!

Indeed the source is readable, thanks. I had to use TEXTAREA(...) instead
of INPUT(...) in order to get _cols and _rows attributes. Couldn't manage
to edit these parameters through INPUT. There is no main problem with this
change, just a format question. The second point, is that developers in
most cases knows shift+enter creates a new line but does our final users
know it?

Francisco Barretto
Doutorando PPG-Arte - Arte e Tecnologia

Laboratório de Pesquisa em Arte Computacional (Midialab)
Departamento de Artes Visuais
Instituto de Artes
Universidade de Brasília - UnB
Campus Universitário Darcy Ribeiro
Asa Norte
70910-900, Brasília - DF

www.ciurbi.wordpress.com
www.wikinarua.com
www.tectecbaratinha.wordpress.com
www.flickr.com/photos/meiotijolo


2012/12/5 Derek <[email protected]>

> I'd also like to add that you should be able to find this by looking at
> the source code. In gluon/html.py. It is surprisingly readable.
>
>
> On Wednesday, December 5, 2012 9:48:23 AM UTC-7, Derek wrote:
>>
>> 1. for textarea, set _rows and _cols.
>> 2. press shift-enter instead.
>> 3. _disabled?
>>
>> On Wednesday, December 5, 2012 6:46:16 AM UTC-7, Francisco Barretto wrote:
>>>
>>> Hi there, it might be (and probably is) a silly but I have a series of
>>> questions concerning the following form:
>>>
>>> form=FORM(TABLE(TR("Nome:",INP**UT(_type="text",_name="name", _value=
>>> user_name, _writable=False, requires=IS_NOT_EMPTY())),
>>>                         
>>> TR("Email:",INPUT(_type="text"**,_name="email",_value
>>> =user_email, _writable=False, requires=IS_EMAIL())),
>>>                         TR("Message:",INPUT(_type="**textarea",_name=
>>> "message", requires=IS_NOT_EMPTY())),
>>>                         #TD(Recaptcha(request,__conf__**.public_key(),
>>> __conf__.private_key())),
>>>                         TR(TD(), TD(INPUT(_type="submit", _value="Send"
>>> ),INPUT(_type="**button",_value="Cancel",_**onclick="javascript:history.
>>> **go(-1);"), INPUT(_type="button",_value="**Clear",_onclick="this.form.*
>>> *reset();")))))
>>>
>>>
>>> 1) How can I set the number of rows and columns of a textarea in a
>>> regular form?
>>> 2) How can I allow lines breaks ( \n ) in a textarea field? Actually
>>> when I hit enter, it submits the form.
>>> 3) How can I set an input textfield as non-writable? '_writable=False'
>>> doesnt work
>>>
>>> Thanks!
>>>
>>>
>>>
>>>
>>>  --
>
>
>
>

-- 



Reply via email to