On May 16, 4:30 pm, Massimo Di Pierro <[email protected]>
wrote:
> form=SQLFORM(...)
> form.element('textarea')['_rows'] = random.randint(10,20)
This works, in that the attributes are passed through to the HTML
page.
It doesn't work, in that the cols attribute seems to be ignored. When
I change rows, the number of rows changed in the HTML does change.
When I change cols, it still displays the default number of columns.
Here's the code I'm using in the controller:
form.element('textarea')['_rows']=30
form.element('textarea')['_cols']=80
That generates the following HTML:
<textarea class="text" cols="80" id="contest_description"
name="description" rows="30">
30 rows display, but the columns are still the default.
Where could the number of columns for the text area be getting
overriden?