OT: Javascript Form Validation

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41044
interpreted = N
texte = I know this is OT, but I just can't get it figured out. I know I'm probably missing something very simple because I'm not very JS savvy. I hope one of the JS geniuses on the list can help me.I'm using the javascript below to validate a form that contains 3 pull-down menus: MONTH, DAY, and YEAR. These 3 pull-down values are combined by WebCat to form a complete date.Visitors don't have to use the pull-down menus. But, if they select a value from at lease 1 of the pull-down menus, I need to force them to use all 3 in order to complete the date.Right now, the script catches partial dates and throws up and alert, but it won't let visitors submit the form with no date. --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. OT: Javascript Form Validation (Clint Davis 2002)
I know this is OT, but I just can't get it figured out. I know I'm probably missing something very simple because I'm not very JS savvy. I hope one of the JS geniuses on the list can help me.I'm using the javascript below to validate a form that contains 3 pull-down menus: MONTH, DAY, and YEAR. These 3 pull-down values are combined by WebCat to form a complete date.Visitors don't have to use the pull-down menus. But, if they select a value from at lease 1 of the pull-down menus, I need to force them to use all 3 in order to complete the date.Right now, the script catches partial dates and throws up and alert, but it won't let visitors submit the form with no date. --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Clint Davis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Listserver problem (1997) My slower response (1997) Semi-OT SSL IE problem (2005) Safari browser and WebDNA set-cookies (2003) RE: [WebDNA] php/mySQL version of WebDNA Speed Test? (2009) WebCatalog and Webstar 3.02 (1998) WebCat2b15MacPlugin - [protect] (1997) Encryption Question (2006) multi-paragraph fields (1997) SiteEdit Pro Update Announcement (1997) Windows: Apache in place of IIS (2002) Protect vs Authenicate (1997) Upgrading from 2.1 to 3.0.7 (2000) all records returned. (1997) Generating unique SKU from [cart] - FIXED! (1997) Grep all content between twp p tags (2006) Dummy Credit Card Number for debug? (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997) Kaaaaahhhhhhhnnnnnnn! (1997)