Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:97:\"array_map() [<a href=\'function.array-map\'>function.array-map</a>]: Argument #2 should be an array\";s:5:\"%file\";s:67:\"/homepages/23/d181601631/htdocs/Drupal/modules/system/system.module\";s:5:\"%line\";i:1015;}', 3, '', 'http://www.drupalguides.net/Guides/5/Javascript', '', '54.161.73.123', 1508476784) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128

Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:107:\"array_keys() [<a href=\'function.array-keys\'>function.array-keys</a>]: The first argument should be an array\";s:5:\"%file\";s:57:\"/homepages/23/d181601631/htdocs/Drupal/includes/theme.inc\";s:5:\"%line\";i:1771;}', 3, '', 'http://www.drupalguides.net/Guides/5/Javascript', '', '54.161.73.123', 1508476784) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128

Warning: INSERT command denied to user 'dbo248886814'@'212.227.119.181' for table 'drupalguides_watchdog' query: INSERT INTO drupalguides_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:39:\"Invalid argument supplied for foreach()\";s:5:\"%file\";s:57:\"/homepages/23/d181601631/htdocs/Drupal/includes/theme.inc\";s:5:\"%line\";i:1771;}', 3, '', 'http://www.drupalguides.net/Guides/5/Javascript', '', '54.161.73.123', 1508476784) in /homepages/23/d181601631/htdocs/Drupal/includes/database.mysqli.inc on line 128
DrupalGuides.net - Guides and tutorials for Drupal
  • warning: array_map() [function.array-map]: Argument #2 should be an array in /homepages/23/d181601631/htdocs/Drupal/modules/system/system.module on line 1015.
  • warning: array_keys() [function.array-keys]: The first argument should be an array in /homepages/23/d181601631/htdocs/Drupal/includes/theme.inc on line 1771.
  • warning: Invalid argument supplied for foreach() in /homepages/23/d181601631/htdocs/Drupal/includes/theme.inc on line 1771.
Title Nid
Using Javascript in your Drupal site - list of resources This is a collection of resources which are useful if you want to start using Javascript on your Drupal site. The guide explains the basis of using Javascript and how it can be integrated with Drupal using DOM, jQuery, Drupal Javascript and Drupal Form API. 41
Working with JavaScript in Drupal 6: Part 1 In this article by Matt Butcher, we will be working with JavaScript inside of a Drupal environment. We will begin by exploring how JavaScript is included in Drupal pages, and then create our first script for Drupal. 77
Working with JavaScript in Drupal 6: Part 2 This is the second section to Matt Butcher's article which describes the basics of using javascript in Drupal 6. In this article you will learn how to create a simple theme and add JavaScript to the theme. 78