0
jQuery in Drupal
     Part Two

DrupalCon Szeged 2008
Agenda

• Using jQuery in Drupal

• Keeping jQuery up to date in Drupal

• AJAX

• AHAH and Drag
jQuery in Drupal

• In core since Drupal 5 (version 1.0.1)

• chosen for its small file size

• modular, like Drupal itsel...
Using jQuery in Drupal

• Important functions on the PHP side
  – drupal_add_js()
    • Add a JavaScript file, setting or ...
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Using JavaScript in Drupal
Upcoming SlideShare
Loading in...5
×

Using JavaScript in Drupal

19,317

Published on

An overview of how to use JavaScript in Drupal, including an in-depth look at drupal.js

Published in: Technology
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total Views
19,317
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
178
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Using JavaScript in Drupal"

  1. 1. jQuery in Drupal Part Two DrupalCon Szeged 2008
  2. 2. Agenda • Using jQuery in Drupal • Keeping jQuery up to date in Drupal • AJAX • AHAH and Drag
  3. 3. jQuery in Drupal • In core since Drupal 5 (version 1.0.1) • chosen for its small file size • modular, like Drupal itself • has a great community, like Drupal :-)
  4. 4. Using jQuery in Drupal • Important functions on the PHP side – drupal_add_js() • Add a JavaScript file, setting or inline code to the page • parameters: data, type, scope, defer, cache • Examples: – drupal_add_js(drupal_get_path(‘module’, ‘mymodule’) .'/myjs.js'); – drupal_add_js(array(‘myjs’=>$mysettings), ‘setting’); – Drupal_add_js(‘var myVar = “foo”;’, ‘inline’);
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×