Re: WO/Javascript
Re: WO/Javascript
- Subject: Re: WO/Javascript
- From: David LeBer <email@hidden>
- Date: Thu, 6 Jan 2005 11:18:23 -0500
On Jan 6, 2005, at 11:06 AM, Sébastien Gruhier wrote:
Hello
I am a little bit lost with WO and Javascript.
I have a page with a form and some textfields. Some of them are
mandatory. When the user submti the form, it calls an action. In this
action I check if mandatory fields are not empty. If they are, I would
like to popup a small window, saying "you need to type your email" for
example.
How do I do this? I saw some JSxxxx class but I don't understand how
to use them.
Any sample code or hints to do that?
Seb
This completely negates your question, but...
If you're performing a round trip to the server, why not return the
form with the missing fields marked and a validation error message on
the page? That saves the user from dismissing the dialog before
continuing.
Otherwise you might want to consider performing the validation in JS in
the web browser negating the need for the round-trip to the server.
Personally I would avoid this option unless it is a stated requirement
as it will seriously complicate your components.
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
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: | |
| >WO/Javascript (From: Sébastien Gruhier <email@hidden>) |