You might have a look at http://www.pengoworks.com/qforms/download/ which preloads javascript forms ready built for all sorts of similar requirements
Colm -----Original Message----- From: Paul Johnston [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 12:15 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] CFForm text box This works: <script language="Javascript"> function checkForm(myform) { if(myform.comments.value.match(/^\s*$/)) { // it's empty alert('You must enter a value for comments'); return false; } else { return true; } } </script> <cfform action="action.cfm" name="a"> <textarea name="comments" cols="50" rows="12"></textarea> <input type="image" src="images/submit.gif" value="Submit Form" onClick="return checkForm(this.form);" /> </cfform> HTH Paul -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003 -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
