Issue 203: nyroModal + Validation plugin
Status:  Fixed
Owner: ----
Closed:  May 2009
Reported by jit...@gmail.com, Mar 23, 2009
I'm trying to use nyroModal in conjunction with a form validation plugin
( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ )
But for some reason, when the form is submitted, the validation plugin
kicks in, and shows the error in the form.. but the form submit still
happens - the submit routine is going on and doesnt stop because of the
validation error...

This problem only happens when the <form> element has 'class="nyroModal"'
(so the form will be submitted "inside" the modal, and not to a new page)...
if the form does not have the "nyroModal" class, validation stops the form
from being submitted if a validation error occurs...

Is there any way to make both of the plugins to work together?

Many thanks in advance!
Apr 9, 2009
Project Member #1 nyro...@gmail.com
instead of adding class="nyroModal" on your form, you should use the valid callback
of your valdiation plugin to open the modal.

example:
$("#myform").validate({
	submitHandler: function(form) {
		$(form).nyroModalManual();
	}
});

please let me know if it's working.
May 4, 2009
#2 jit...@gmail.com
sorry for the late response - 
its working great!
thanks!
May 4, 2009
Project Member #3 nyro...@gmail.com
better late than never ;)
Status: Fixed
Apr 3, 2011
#4 marc.wit...@gmail.com
Do you have a code snippet? I have the same issue and the solution you mentioned is not working/clear for me.