• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO/Javascript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: WO/Javascript
  • Next by Date: Help with StackOverflowError
  • Previous by thread: WO/Javascript
  • Next by thread: Re: WO/Javascript
  • Index(es):
    • Date
    • Thread