Comment doen not send via AJAX

nickostyle - February 17, 2008 - 14:25
Project:Javascript Tools
Version:HEAD
Component:Ajaxsubmit
Category:support request
Priority:normal
Assigned:nickostyle
Status:active
Description

Hi all

Im trying to post comment, but he does not appear, i need to reload page to see him.

In README : To make a form submit and preview via AJAX, add the following to our form definition: $form['#ajaxsubmit'] = TRUE;

WHERE i must add this? In what file?

Thank you!

#1

BradM - August 10, 2008 - 18:34

The line $form['#ajaxsubmit'] = TRUE; appears within the ajaxsubmit.module file, and is set to TRUE by default. So there's nothing to change here.

I just installed this module and I can confirm that you must refresh the page (after submitting the comment via ajax) in order to see it, which kind of defeats the purpose. Any ideas? Thanks.

#2

trevorleenc - September 28, 2008 - 18:52

I just decided to try this out as well, after seeing something similar on a wordpress site...

however, when I add the comment, a progress meter shows up, and then quits, leaving me with my comment box as it had been, with the comment in it...

if I refresh the page, the comment shows up.

#3

nedjo - September 28, 2008 - 19:01
Priority:critical» normal

Ajaxsubmit was written as a helper module, not as a complete solution in itself.

I sketched in a solution in Activeedit using Ajaxsubmit to enable in-place adding of comments, including display of the just-added comment, but the overall Activeedit approach was weak and I've discontinued development of it.

#4

rry - October 28, 2008 - 15:18

Then how are you supposed to use Ajaxsubmit?

 
 

Drupal is a registered trademark of Dries Buytaert.