1
Vote

Need to display error messages on client side for ajax posted forms.

description

Forms which are ajax submitted receive a [success, message, id] ajax response from the server when an expected error occurs on the server (usually due to validations which cannot be completed on the client side).
In such cases the success item of the response is false and the message item contains the error to display to the user.
This error needs to be put up in the error div above the forms.

comments