Re: about javascript

2006-08-11 Thread Puneet Lakhina
On 8/11/06, Gary Feidt <[EMAIL PROTECTED]> wrote: Add an onclick="validateForm(); return false;" Then create a javascript function: function validateForm() { var errorString = "The following field(s) may not be left blank:\r\n\r\n"; var strField = ""; if (document.frmT

Re: about javascript

2006-08-11 Thread Romu
return false; } Similarly u can write for other two filds return true; } -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:37 PM To: Struts Users Mailing List Subject: Re: about javascript no, i have three text fields in my one jsp i

RE: about javascript

2006-08-11 Thread kumar.vinodh
'theFile'].focus(); return false; } Similarly u can write for other two filds return true; } -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:37 PM To: Struts Users Mailing List Subject: Re: about javascript no,

RE: about javascript

2006-08-11 Thread Krishna, Hari
use which is a gift from html tld and u will get javascript on the fly Googleup for samples -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:37 PM To: Struts Users Mailing List Subject: Re: about javascript no, i have three text fields in my

Re: about javascript

2006-08-11 Thread Gomathi
ts Users Mailing List" Sent: Friday, August 11, 2006 5:10 PM Subject: RE: about javascript r u going to check for mandatory fields. -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 4:45 PM To: Struts Users Mailing List Subject: about javasc

Re: about javascript

2006-08-11 Thread Gary Feidt
Add an onclick="validateForm(); return false;" Then create a javascript function: function validateForm() { var errorString = "The following field(s) may not be left blank:\r\n\r\n"; var strField = ""; if (document.frmTest.txtFirstName.value.length == 0) {

RE: about javascript

2006-08-11 Thread Krishna, Hari
r u going to check for mandatory fields. -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 4:45 PM To: Struts Users Mailing List Subject: about javascript hai i am working in struts1.1 i have threee fields in how to check these empty fields when su