You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Fight Ice <ri...@hotmail.com> on 2012/05/12 10:26:07 UTC
How to prevent form being submit in mixins when validation failed
I have a mixins to validate the username field and email field using ajax.
but in my ValidateField.js file, i use:
Event.observe(this.sourceField.form,'submit',this.doSubmit.bindAsEventListener(this));
doSubmit:function(event){
return this.state;
}
but the form still submit even the "doSubmit" return false.