We are using jquery to .load() a form into a div
We then use jquery to .post() that form to a codeigniter controller ie /app/post
We then want Codeigniter to perform validation but were not sure how to return to a page to display the validation errors? If re re .load() the controller wont it re-init the object and we lose the data?
Are we approaching this in the wrong way?
Store the validation messages in sessions from your controller and then show them on the corresponding view/page but if all validation is done correctly by the user the you should destroy the session again.