I have a main view and a modal window which is a child view from the parent view.
The modal consist of a form which is submitted via ajax.
How do I render the parent view from the child view after submitting the form?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The parent view can bind to notifications on the child view to know when the form was submitted. Then it can render itself:
On the parent view:
On the child view:
The child will trigger a “formSubmitted” event and the parent’s render function will be called.