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. :PI 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
