[OT] javascript field validation with encoded forms

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57594
interpreted = N
texte = I've been using some "borrowed" javascript to validate submitted forms before they reach the browser.. something like: if (document[frm].first_name.value=="") { alert('Please enter your first name') document[frm].first_name.focus(); return false;} But as soon as I put this into my forms, the javascript no longer works. enctype="multipart/form-data" Any ideas? Thanks, ~joe -- _______________________________________________________________ Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access ~ WebCat programming ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] javascript field validation with encoded forms ( Gary Krockover 2004)
  2. [OT] javascript field validation with encoded forms ( Joe D'Andrea 2004)
I've been using some "borrowed" javascript to validate submitted forms before they reach the browser.. something like: if (document[frm].first_name.value=="") { alert('Please enter your first name') document[frm].first_name.focus(); return false;} But as soon as I put this into my forms, the javascript no longer works. enctype="multipart/form-data" Any ideas? Thanks, ~joe -- _______________________________________________________________ Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access ~ WebCat programming ------------------------------------------------------------- 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://webdna.smithmicro.com/ Joe D'Andrea

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:

Catalog page question (1999) Error & Problem (1997) Group search doesn't work. (1997) EmailProblem (2003) Some Questions (1997) URGENT! ACGI Stopped!!!! (1997) Is [thisurl] http or https? (1998) WebCatalog for guestbook ? (1997) Superfilous Characters (1998) WC2.0 Memory Requirements (1997) [DOS]/DOS query perhaps OT (2003) [searchString] (1997) [WebDNA] anyone know why webdna kicking out incorrect dates? (2008) Counting Inventory (2003) [getchars] questions (1997) [subtotal] and others (1997) Webcat deletes last line from Excel-saved text db (2004) Setting up WebCatalog with Retail Pro data (1996) Changing price for a SLU based on options (size, etc.) (1997) Auto entering Friday's date in a field (2002)