What I want to do is get a JSON object and an HTML view from a single AJAX call.
My current implementation is the JSON object is hidden in some part of the html and just parsed client side.
Is this good practice? Is there a better way of doing this?
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.
Return a JSON object with the HTML inside: