Posted by nickostyle on February 17, 2008 at 2:25pm
Jump to:
| Project: | Javascript Tools |
| Version: | master |
| Component: | Ajaxsubmit |
| Category: | support request |
| Priority: | normal |
| Assigned: | nickostyle |
| Status: | active |
Issue Summary
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!
Comments
#1
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
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
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
Then how are you supposed to use Ajaxsubmit?