struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mead Lai <laiqi...@gmail.com>
Subject Re: additional onsubmit javascript validation
Date Thu, 23 Sep 2010 01:50:26 GMT
Hi Robert,

Do you have another submit button? such as <s:submit/>,
Try to bind a event listener to this button, that when you click this
button, you do some validation();

Another way is using the js to remove the  "onsubmit" event, then binding
another method you write, and invoke the myValidation() in that method;
bind
AnoterMethod(){

if(!validateForm_MyAction()){return;}
//Here do your validation
return myValidation()
}

Regards,
Mead

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message