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 3604372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:59:21+00:00 2026-05-18T20:59:21+00:00

Normally, I love drupal and generally I do, but I want to know why

  • 0

Normally, I love drupal and generally I do, but I want to know why it makes coding in JavaScript so hard?

You see, I’m porting an existing page with an AJAX user interface into drupal. I would like to keep it AJAX but at the minute I can’t see how – I can’t even get a simple alert to work!

A quick google search made me find out 2 things. 1) I need help from someone 2) because drupal has a wired way of handling javascript due to it being a CMS.

All my script does is add to inputs to a mysql database in the following format, returning an error if the entry is alreading in the database: input1=input2. So if somebody could start me off with JavaScript in drupal; maybe give me a mysql example script (using AJAX),
i’d be very grateful!

Thanks in advance,

Andy

PS Googling did reveal some example scripts but I had 2 problems with them. 1) I didn’t quite get them 2) due to the fact they were for modules. I need to create a page with an AJAX interface on, not a module!

  • 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-18T20:59:22+00:00Added an answer on May 18, 2026 at 8:59 pm

    Maybe the solution to your problem IS a module.

    Other than that, the only thing I can think of is: JavaScript is parsed out of your “page node” (I suppose that’s what you mean by creating a “page”) due to the content-type settings…

    One thing you can do is to create a content-type where you can insert plain-text and hence execute javascript, php, whatever… Creating this kind of content-type, of course has security risks, depending on how you use it and who has permissions to use it…

    Update
    Take a look at this link and see if it helps http://groups.drupal.org/node/41866#comment-114744

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

Sidebar

Related Questions

Normally when I want to change the connection for a Query Editor Window in
Normally, if I want to start a new activity I can use StartActivity(typeof(foo)); This
Normally we use window.location.href=/index.php?querystring; in javascript. Is there a way to send the querystring
Normally, when I want to allow a user to download a file without revealing
Normally, i should see my provisioning profile in the list here: Why i am
Normally I love to keep my HTML code clean, semantic and free from either
I am developing VAADIN using Db4O for storage. Normally, I love the fact that
Normally I use: gem install rails I can install Rails on Windows, but by
Normally, when you want to call a stored procedure directly through Linq to Sql,
I would normally post this on nvidia's developer forums but they are still offline

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.