Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7509581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:57:33+00:00 2026-05-29T22:57:33+00:00

I want users to be able to submit nodes and comments via AJAX. I

  • 0

I want users to be able to submit nodes and comments via AJAX. I also want to do some fairly extensive customization of the node and comment forms.

I’ve spent time looking through documentation and code examples for Drupal 7’s Form API and Ajax framework, but I find it very complex. Therefore, I simply want to create my own form in HTML and use my own JavaScript code to submit it via Ajax. I’ll also set up a specific URL for processing these Ajax requests, which will ultimately call node_save() or comment_save() when appropriate.

What are the downsides to doing it this way as opposed to going through the Form API and Ajax framework? I’m not creating modules for contribution to the community. Everything is just for my own site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:57:35+00:00Added an answer on May 29, 2026 at 10:57 pm

    The usual argument would be about portability I guess, but if you’re not going to be porting these modules to another Drupal site then I guess that falls down.

    The same can be said for offering other modules the chance to alter your form based on some global/inherited setting, but again if you really don’t want/need this functionality then it can’t really be used as an argument against.

    The one thing you will lose out on is the built in Cross-Site Request Forgery protection. As long as you’re rolling your own version of that, though, you should be ok.

    If you plan to use Drupal a lot I’d recommend getting used to the FAPI though…after a while it actually becomes a lot easier to use the FAPI than write out custom HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some pages that I don't want users to be able to access
(PHP, MySQL, HTML) I want users at my site to be able to submit
Hi i'm planning to make users able to submit some pieces of code (php,java,javascript
Similar Stack Overflow Question I want users to be able to search through my
In my Rails app I want users to be able to input video links
There's this Excel file I want users to be able to download from my
I have an app where we want users to be able to send us
I have several WPF apps, and I want users to be able to log
I want my users to be able to do a rubberband selection in a
I'm writing a small blog module. I want the users to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.