Hi!
I didnt know where to post this idea: an ajax interface for comments module
i rewrote add comment link with javascript function so that i can load comments form in div using jquery post/load
it works when op is preview comment, but doesnt when i press save comment. actually it works but because of _submit hook it redirects and loads whole page instead of comments. how can i rewrite that or should i use different function?
$output .= theme('box', $title, drupal_get_form('comment_form', $form_values, $op));
if could do
if ($op == t("Post comment")) comment_form_submit(NULL, $form_values);
it works but then comment fields are not validated at all.
Please, give me a hint. Maybe you have ajax interface for comments module in your plans?
Comments
Comment #1
EnekoAlonso-1 commentedCheck out this series of articles I have just published about how did I do ajax comments on my website:
http://dev.enekoalonso.com/2008/12/13/ajax-comments-in-drupal-5-how-i-ma...
I haven't had time to publish the code as a module nor to make it standards compliant. But it works for me.
Comment #2
ainigma32 commentedAnswer provided so setting to fixed. Feel free to reopen if you think that is wrong.
- Arie