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
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
'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,
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
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
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) {
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
7 matches
Mail list logo