Sean
-Original Message-
From: O'Shea, Sean
Sent: Monday, August 14, 2006 10:32 AM
To: user@struts.apache.org
Subject: RE: JavaScript validation errors
Hi Srinivas,
I tried setting my login form like this:
.
... Still no luck in getting the javascript function called though. I'
Subject
RE: JavaScript validation errors
Please respond to
"Struts Users
Mailing List"
race somewhere in the code?
Has anyone else come across this problem?
Thanks
Sean
-----Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 14, 2006 5:39 AM
To: Struts Users Mailing List
Subject: RE: JavaScript validation errors
Hi sean,
i thin
08/12/2006 12:11 cc
AM
Subject
RE: JavaScript validation errors
}
if (fields.length > 0) {
focusField.focus();
alert(fields.join('\n'));
}
return isValid;
}
// Trim whitespace from left and right sides of s.
function trim(s) {
return s.replace( /^\s*/, "" ).replace( /\s*$/, &
m Gordon [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 11:56 AM
To: Struts Users Mailing List
Subject: Re: JavaScript validation errors
Sean-
You need to add an "onsubmit" attribute to your html:form" element that
calls the validation function. Specifically, IIRC, it needs to s
ideas on this?
Thanks again
Sean
-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 11:56 AM
To: Struts Users Mailing List
Subject: Re: JavaScript validation errors
Sean-
You need to add an "onsubmit" attribute to your html:form&qu
Sean-
You need to add an "onsubmit" attribute to your html:form" element that
calls the validation function. Specifically, IIRC, it needs to say:
onsubmit="return validateForm(this);
happy coding,
-adam
O'Shea, Sean wrote:
Hi all,
I'm using struts 1.2.7 with commons-validator-1.1.4 and I'
8 matches
Mail list logo