At 03:18 PM 23/06/2004 -0400, Matt Feifarek wrote:
CLIFFORD ILKAY wrote:

Setting an empty parameter for the error test made no difference. As soon as I put in some error test though, e.g. Validators.MaxLength(25) for middle name, the form posted properly. Speaking of MaxLength(), how does one specify the width of a text field in FormKit? I saw no obvious way to do it.
That's very strange. We've never seen that sort of thing, and we use non-validated fields all of the time.

I'll send the code to you privately.

As far as maxlength, you can send maxLength into the constructor for TextInputField. If you want to use just TextField, you can set the attributes yourself (it's not techincally a valid attribute in xhtml, I think).

I specified:

newForm.addField(Fields.TextField('mname',[Validators.MaxLength(25)],label="Middle Name"))

It made no difference in the width of the field that was rendered. I specified MaxLength(6) for Salutation and both fields were the same width, and no different than when I had not specified any MaxLength.

The "right way" to do it is to use CSS though.

I do not know of a way to specify the width of a given text entry field in a form with CSS. When you think about it, it makes sense as CSS operates on classes of things, not individual instances of things.


Regards,

Clifford Ilkay
Dinamis Corporation
3266 Yonge Street, Suite 1419
Toronto, Ontario
Canada M4N 3P6

Tel: 416-410-3326



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to