struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Form validations using struts is not working with Mozilla, but working fine with IE
Date Mon, 16 Jul 2007 10:15:06 GMT
I don't know why your validation doesn't work in
Mozilla but does in IE, but I wanted to thank you for
making my job seem better.

--- bhba <bhanu.balaji@gmail.com> wrote:
> function validate() {
>   var email = document.all.email.value;
>   if (!isValidEmail(email)) {
>     alert("Please enter a valid email address");
>     return true;
>     document.all.email.focus();
>   }
>   return true;
> }

How come validate always returns true and the focus is
after the return?

d.



       
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message