Checking validation errors in XMLHttpRequest
Posted
by egaga
on Stack Overflow
See other posts from Stack Overflow
or by egaga
Published on 2009-05-13T12:25:15Z
Indexed on
2010/05/27
17:01 UTC
Read the original article
Hit count: 182
$.post(actionUrl, serializedForm, function(response) {
...
}
I need to check whether validation of form succeeded, or not (I don't need to know the exact validation errors). The validation is done by Spring, and I wouldn't like to interfere the process, because there's some annoying dependencies.
What would be the best approach? Is there a Spring error object in response, or is it accessible only in server side?
I would also like to know if there's is any proper documentation about response in jQuery site? How can I traverse or manipulate it?
© Stack Overflow or respective owner