Re: WOText
Re: WOText
- Subject: Re: WOText
- From: Klaus Berkling <email@hidden>
- Date: Thu, 19 Feb 2009 23:01:42 -0800
On Feb 19, 2009, at 11:17 AM, Chuck Hill wrote:
On Feb 19, 2009, at 11:05 AM, Gustavo Pizano wrote:
Hello all.
Well, I need a TextArea, as I read, the WOText is the equivalent.
now, I need to restrict the size to 100, I read then that I can do
that in the key methods, checking the size and just setting in the
variable the first 100.
I came up with some problems, it will allow me to keep writing all
the time and I will realize I over wrote just when submitting, so I
was thinking in doing a JS function which purpose will be to
verify the user input and once reached the max will alert or
something, or I was thinking if there is an AJAX component which
allow me to do such a thing, in a fancy way. :P
I don't think there is an Ajax component, but a Google search will
turn up several examples of using JavaScript to do client side
validation.
Ultimately you need to validate in your code and then you might as
well respond back to user (if you're nice and not silently just get
the first 100). I welcome a nicer option.
There are neat things you can do on the client side (<http://www.dyned.com/support/getsupport
>, check out the email address field). Client side validation can
save you and the user a trip through the app but you can't really
trust the client.
Thanks
kib
"Success is not final, failure is not fatal: it is the courage to
continue that counts.”
- Winston Churchill
Klaus Berkling
Systems Administrator
DynEd International, Inc.
www.dyned.com | www.eskimo.com/~kiberkli
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >WOText (From: Gustavo Pizano <email@hidden>) |
| >Re: WOText (From: Chuck Hill <email@hidden>) |