First, thanks for a great-looking module. I've been having some trouble though: when I activate AJAX forms on my node comment creation form everything seems to work when I go to create content->node comment, but when I embed the form into a node template using the code below, the ajax functionality ceases to work: when I click the submit button the button text changes to "loading," but nothing ever happens. The node is being created, because when I reload the page it's there.
print $comment_form = nodecomment_form($node);
Is this not the correct way to embed a form? Any help would be much appreciated!
Comments
Comment #1
brendoncrawford commentedDavidlerin,
Thanks for your feedback. I will have a look this weekend.
-brendon
Comment #2
brendoncrawford commentedThe correct way to embed a comment form is:
Using this method, I was able to get AJAX Forms to work fine with the comment box.
Thanks,
Brendon
Comment #3
jordanmagnuson commentedHey Brendon, thanks a lot for the quick response! I'm sorry for not making this completely clear in my original post, but I am not trying to embed a comment box in my node template: I am trying to embed the nodecomment_form from the Node Comments module: in other words, a full node creation form (the form I see when I go to Admin->Content Management -> Create Content -> Node Comment). I've looked all over, but have had a very hard time finding anything helpful on the subject of embedding a node creation form... print $comment_form = nodecomment_form($node) seemed to work, so I figured that was the way to do it... but maybe not? So I still don't know if the issue here is with your module, or with the method I used to embed the form.
Thanks again for your help--very much appreciated; and I am sorry about the lack of clarity in my original post.
Jordan
Comment #4
jordanmagnuson commentedAfter looking at http://drupal.org/node/261495 I tried:
Again, the form was printed on the page as expected, with no errors (this time it even had a settings box that was not printed using my previous method, so it now looks exactly as it does when I go to the node creation page), but again, when I push the submit button after enabling Ajax Forms, it just sits there on "Loading...".
Comment #5
brendoncrawford commentedDavidlerin,
This has now been fixed in 6.x-1.x-dev. Please wait up to 12 hours for the latest dev package to update. Also, the correct way to display a node creation form would be: