Re: Restrict amount of text in a TextField form

2006-09-06 Thread Gábor Farkas
cyberco wrote: > Thanks for the pointer, but how can I add a parameter to the textarea > formfield, such as: > > == > onkeyup="textLimit(this.form.test, 40);"> > == > > if these formfields are automagically

Re: Restrict amount of text in a TextField form

2006-09-06 Thread cyberco
Thanks for the pointer, but how can I add a parameter to the textarea formfield, such as: == == if these formfields are automagically generated by Django? --~--~-~--~~~---~--~--

Re: Restrict amount of text in a TextField form

2006-09-05 Thread Corey Oordt
cyberco: If you want to do it in the interface, you will have to use some javascript. Here is a page that shows how to do it: http://www.felgall.com/ jstip20.htm Corey On Sep 5, 2006, at 8:50 AM, cyberco wrote: > > How can I set a maximum for the amount of text a user enters in a > TextFie

Re: Restrict amount of text in a TextField form

2006-09-05 Thread Guillermo Fernandez Castellanos
Hi, It seems to me that TextField has a maximum number of text. In the code /django/forms/__init__.py: class TextField(FormField): def __init__(self, field_name, length=30, maxlength=None, is_required=False, validator_list=None, member_name=None): It seems to be maxlength. You can see it us

Restrict amount of text in a TextField form

2006-09-05 Thread cyberco
How can I set a maximum for the amount of text a user enters in a TextField form? CharField has a 'maxlength' parameter, but TextField not. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po