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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:50:56+00:00 2026-06-04T09:50:56+00:00

I have an html page that calls some javascript and jQuery functions and also

  • 0

I have an html page that calls some javascript and jQuery functions and also has an ’embed’ tag to load a NaCl (native client) module. The page works fine as is but now I would like to build a web site that serves this page. I have set up a drupal 7 site but I am confused as to the best way to include my page.

I thought that I could just add a basic-page content, paste my code in the text editor and then make sure that the page can find all the necessary .js and nacl files. But this does not do the trick. (I have installed CKEditor and use full HTML option).

I have read posts advising to include javascript code in theme templates via .info. Or to add as a js library, or in a module. I am not sure which would be the best way to go. For now I just need to be able to write a drupal “basic page” node that calls my javascript and load my NaCl module. Ideally this should be theme independent.

  • 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-06-04T09:50:57+00:00Added an answer on June 4, 2026 at 9:50 am

    Ok I have found a simple way to add javascript and jquery in drupal 7 without building your own module, without including it in a theme and without incorporating your library yourself. There is a module that includes your javascript library for you and manages its inclusion in drupal 7. It makes your javascript available for each page: drupal.org/project/javascript_libraries –

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

Sidebar

Related Questions

I have Jquery+Ajax page that connects to server gets some data, and displays it.
I have a page that uses jQuery tabs to tabify a set of HTML
I have a web application that loads javascript on page load: $(function() { $('.modal-delete').click(function()
I have a html page that my users can write a text and send
I have a HTML page that scrolls up and down (not a lot, but
I have an HTML page that uses AJAX to retrieve messages from a server.
Ok, so as the title says, I have an HTML page that I fetch
I have a page that loads an external HTML page into an iFrame. There
I have n number of select elements in an html page that are used
I have an HTML page with lot of tables. Among that I have a

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.