[jQuery] form submission and error messages: what's your approach?

[jQuery] form submission and error messages: what's your approach?


Hi,
Initiating myself to Ajax, I cam to wonder one important thing:
How do you guys handle error messages in the context of a form
submission? So far, I have always proceded like this:
The fields are treated server-side. If a problem is detected, I return
the page to Client (with persistant content relying on session) with:
1. One general error message (ex:"an error occured")
2. Next to each problematic field, a specific error message.
Now that I am "ajaxing" my forms, what approaches would you recommand?
How do you do that? What is the jQuery mentality?
Regards,
-jj.