10. 6 years of AJAX 2004 - 2005- 2006 – 2007 – 2008 - 2009 – 2010 Jesse James Garrett gives a name to this combination of tecnologies.
11. 6 years of AJAX 2004 - 2005 - 2006– 2007 – 2008 - 2009 – 2010
12. 6 years of AJAX 2004 - 2005 - 2006 – 2007– 2008 - 2009 – 2010 Drupal 6 released! Includes jQuery for the first time. NathanHaug – quicksketch – developes AHAH features
13. 6 years of AJAX 2004 - 2005 - 2006 – 2007 – 2008- 2009 – 2010 CTools (Chaos Tools Suite) #26 byEarl Miles – merlinofchaos Low-level tools for developers Multi-step forms Plugins Exportables … One of themisAJAX responder butunknown, undocumented ignored
15. 6 years of AJAX 2004 - 2005 - 2006 – 2007 – 2008 - 2009 – 2010
16. AJAX “old way” PHP Side JS Side Output a link with a CSS id/class Bind the link. Make Ajaxcall Loading.. Callback functionthatreturns JSON/HTML Manage received data. Manipulate the DOM Handle AJAX errors Drupal.behaviors
17. AJAX “new way” PHP Side JS Side Output a link with .ctools-use-ajax (.use-ajax in D7) Bind the link. Make Ajaxcall Loading.. Use macro commands like: ctools_ajax_command_append ajax_command_append (in D7) Manage received data. Manipulate the DOM Handle AJAX errors Drupal.behaviors
18. Why use the “new way”? Adventages of beingpart of Drupalcore Standarizedway of doingAjax D7 ~ D6 Gracefuldegradation. Identifyingajaxlinks. Lesscodetowrite/maintain LetAjax Framework takescare of Loading… Allthejavascript. Drupal.behaviors() Errorsdisplay WarmCache*