Using JavaScript in Drupal

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites & 1 Group

    Using JavaScript in Drupal - Presentation Transcript

    1. jQuery in Drupal Part Two DrupalCon Szeged 2008
    2. Agenda • Using jQuery in Drupal • Keeping jQuery up to date in Drupal • AJAX • AHAH and Drag&Drop
    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. 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’);

    + katbaileykatbailey, 2 years ago

    custom

    5406 views, 2 favs, 4 embeds more stats

    An overview of how to use JavaScript in Drupal, inc more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 5406
      • 5379 on SlideShare
      • 27 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 92
    Most viewed embeds
    • 17 views on http://www.katbailey.net
    • 8 views on http://katbailey.net
    • 1 views on http://localhost
    • 1 views on http://drupalranch.com

    more

    All embeds
    • 17 views on http://www.katbailey.net
    • 8 views on http://katbailey.net
    • 1 views on http://localhost
    • 1 views on http://drupalranch.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events