Tag Archives: ajax
Ajax comments in Drupal 5: How I made it – Part II
In Axaj comments in Drupal 5: How I made it – Part I I covered the most important part of the module code: saving comments to the database. Now, let’s see how to display them properly. Rendering the new comment Comments usually have more information than the user name and the comment text. In my [...]
Ajax comments in Drupal 5: How I made it – Part I
First of all, I would like to apologize for not publishing this the right way. I haven’t had time to put it all on a standalone module, which will make it easier to share the code at www.drupal.org. Feel free to grab the code and put it on a module if you wish (and let [...]
Ajax comments in Drupal 5: How I made it – Part III
In Ajax comments in Drupal 5: How I made it parts I and II we saw the code needed on the back-end. Now, let’s see what goes on the client side: the Javascript. Submitting the comment with an ajax request Basically, to add a comment we need the node id (nid) and the comment text. [...]