I am posting a comment to a thread with an AJAX call.
It sends the request to the server as it should. How can I append the new comment to the other comments?
I guess it will be something like
.done(function () {
...().after(html);
});
The style of the comments is a bit complicated so it's not enough to just append some text to a div. How is this normally done?
I am using jQuery and Django. Should the html be generated by server-side with Django templates or just client-side with jquery (maybe a jquery templating system)?
How is this done at sites as Facebook? Is it by appending html when posted successfully or is the page refreshing with an interval and updating the entire page?