Re: [OT] javascript field validation with encoded forms
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57595
interpreted = N
texte = This works for me:if (document[frm].first_name.value == ""){ alert("Please enter your first name"); document[frm].first_name.focus(); return (false);}However it's your enctype I'm sure. Are you doing a file upload with this form? I had all kinds of problems getting anything to work on a multipart/form-data so I went to two forms, info which is sent/appended and then a select file page. Not a great answer any of this, so hopefully someone has a better one.GKAt 10:21 AM 4/29/2004, you wrote:>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-------------------------------------------------------------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:
This works for me:if (document[frm].first_name.value == ""){ alert("Please enter your first name"); document[frm].first_name.focus(); return (false);}However it's your enctype I'm sure. Are you doing a file upload with this form? I had all kinds of problems getting anything to work on a multipart/form-data so I went to two forms, info which is sent/appended and then a select file page. Not a great answer any of this, so hopefully someone has a better one.GKAt 10:21 AM 4/29/2004, you wrote:>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-------------------------------------------------------------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/
Gary Krockover
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:
WebCat2b13MacPlugIn - [include] (1997)
Rotating photo gallery (2004)
Format all of a sudden doesn't work (1997)
New servers and new inline cache (1997)
[WebDNA] Help with iTools 9/WebDNA setup MacTel (2009)
Location of Browser Info.txt file (1997)
too many nested tags ... (1997)
FileMaker and WebCat - .hdr OK Merge not OK (1999)
Multiple prices (1997)
select multiple (1997)
[WebDNA] Sublime Text or Textmate (2013)
re:check boxes (1997)
[searchString] (1997)
Running WebCat from a CD-ROM (1997)
Version 4? (2000)
Practice runs ? (1997)
do you have a webcatalog tool you want to sell? (1999)
New public beta available (1997)
Secure server question (1997)
WebCat2: multiple currency support (1997)