I was wondering if any of you jQuery + CakePHP users could help me out here...
I have a blog-like page that contains a post, comments, and a new comment form. I want the new comment form to submit using ajax and have the newly added comment appear in the comments list. Currently, I'm using the jQuery Form Plugin to submit the form: http://www.malsup.com/jquery/form/. So far, the form submission works, but all that is happening is the data being saved. The view does not show any validation error messages defined in the model and does not show the new comment (I have to refresh the page to get the comment to show up and the validation error messages never show up). How can I fix this so the form not only submits using ajax, but the form data is also rendered in the view if saved, or the appropriate validation error messages appear? Thanks.