Adding JavaScript to Your Drupal Module
James A. Barnett
Abstract
James A. Barnett
Abstract
In this chapter you will once again be adding to the hello_world module you created earlier. This time you add some basic JavaScript to the simple page you programmatically created in Drupal. You’ll be using the basic JavaScript skills you just learned in Chapter 7 . Being able to add JavaScript to your Drupal module will mean you’ll be able to add click events, hover events, and all the other JavaScript goodness to make your pages dynamic and user friendly without needing to reload the page unnecessarily to get more information for your users (reloading the page takes about two to four seconds or more if poorly designed, depending on the web page). Enabling users to get the information they need with a great graphical user interface with dynamic JavaScript is in high demand in the marketplace today. The market is actually starting to value JavaScript skills as high or higher than back-end database and PHP skills, but knowing all these skills is ideally still very necessary. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
In this chapter you will once again be adding to the hello_world module you created earlier. This time you add some basic JavaScript to the simple page you programmatically created in Drupal. You’ll be using the basic JavaScript skills you just learned in Chapter 7 . Being able to add JavaScript to your Drupal module will mean you’ll be able to add click events, hover events, and all the other JavaScript goodness to make your pages dynamic and user friendly without needing to reload the page unnecessarily to get more information for your users (reloading the page takes about two to four seconds or more if poorly designed, depending on the web page). Enabling users to get the information they need with a great graphical user interface with dynamic JavaScript is in high demand in the marketplace today. The market is actually starting to value JavaScript skills as high or higher than back-end database and PHP skills, but knowing all these skills is ideally still very necessary. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Key concepts: JavaScript, Unobtrusive JavaScript, Dynamic web page, Computer science, World Wide Web, Web page, Rich Internet application, Web application