DrupalCafe7 CTools AJAX responder

4,683 views

Published on

DrupalCafe 7 Kiev presentation about CTools AJAX Responder for Drupal. Do AJAX calls without any custom line of Javascript.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,683
On SlideShare
0
From Embeds
0
Number of Embeds
33
Actions
Shares
0
Downloads
38
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

DrupalCafe7 CTools AJAX responder

  1. 1. CTools AJAX responder Yuriy Gerasimov Madcap B.V. [email_address]
  2. 2. Ctools consists of <ul>* Plugins -- tools to make it easy for modules to let other modules implement plugins from .inc files. * Exportables -- tools to make it easier for modules to have objects that live in database or live in code, such as 'default views'. * AJAX responder -- tools to make it easier for the server to handle AJAX requests and tell the client what to do with them. * Form tools -- tools to make it easier for forms to deal with AJAX. * Object caching -- tool to make it easier to edit an object across multiple page requests and cache the editing work. * Contexts -- the notion of wrapping objects in a unified wrapper and providing an API to create and accept these contexts as input. * Modal dialog -- tool to make it simple to put a form in a modal dialog. * Dependent -- a simple form widget to make form items appear and disappear based upon the selections in another item. * Content -- pluggable content types used as panes in Panels and other modules like Dashboard. * Form wizard -- an API to make multi-step forms much easier. * CSS tools -- tools to cache and sanitize CSS easily to make user-input CSS safe. </ul>
  3. 3. hook_menu
  4. 4. Drupal ProDevelopment
  5. 5. Drupal ProDevelopment
  6. 6. Drupal ProDevelopment
  7. 7. Page callback
  8. 8. AJAX menu callback
  9. 9. Commands <ul><li>replace (ctools_ajax_command_replace)
  10. 10. prepend (ctools_ajax_command_prepend)
  11. 11. append (ctools_ajax_command_append)
  12. 12. after (ctools_ajax_command_after)
  13. 13. before (ctools_ajax_command_before)
  14. 14. remove (ctools_ajax_command_remove)
  15. 15. changed (ctools_ajax_command_change)
  16. 16. alert (ctools_ajax_command_alert)
  17. 17. css (ctools_ajax_command_css)
  18. 18. attr (ctools_ajax_command_attr)
  19. 19. settings (ctools_ajax_command_settings)
  20. 20. data (ctools_ajax_command_data)
  21. 21. redirect (ctools_ajax_command_redirect)
  22. 22. reload (ctools_ajax_command_reload)
  23. 23. submit (ctools_ajax_command_submit) </li></ul>
  24. 24. Drupal 7 ajax link
  25. 25. Drupal 7 menu callback
  26. 26. D7 commands
  27. 27. Resources <ul><li>D6 </li><ul><li>http://zroger.com/node/31
  28. 28. http://zroger.com/node/30 </li></ul><li>D7 </li><ul><li>http://api.drupal.org/api/drupal/includes--ajax.inc/group/ajax/7
  29. 29. http://api.drupal.org/api/drupal/includes--ajax.inc/group/ajax_commands/7 </li></ul></ul>
  30. 30. CTools AJAX responder Yuriy Gerasimov Madcap B.V. [email_address]

×