Ajax post loading and comments
-
I’m keeping an online diary thingie at https://www.nebelmond.net for which I made a theme that loads the post, page, whatever into a div in the middle of the site. I do that by dynamicaly replacing links with a javascript that executes the ajax call. Now I noticed that when you post a comment and click on submit, it takes you to a single page view, but obviously does not change the link beforehand, because the whole page reloads, losing everything around the div in the process.
I’m at a loss where to start looking for the function that calls the link so that I can change it. Can somebody help me there?
All I found was the do_action(‘comment_form’, post->ID) thing, which according to the codex calls comment_form_popup.php but from where? And is it really the right place to look?
- The topic ‘Ajax post loading and comments’ is closed to new replies.