Drupal & AJAX, the new way. Presentation of David Corbacho ( Drupro.com) for the Drupalcamp Finland 2010 http://corbacho.info
1 of 21
Downloaded 61 times
More Related Content
Drupal & AJAX. Drupalcamp Finland 2010
1. Drupal & AJAXThe New WayPresentedby David Corbacho Roman,DrupalSpecialist at DruproMay 28, 2009
2. AJAXAsynchronous Javascript and XML Let¡¯stalkaboutAJAX an approach that involves HTML/XHTML, CSS, DOM, the XMLHttpRequest object, JSON and Javascriptglueing all these together.
4. Contrib module CTools, and the new D7 AJAX Framework in corethataffectsalsototheForm API (FAPI), replacingtheDrupal 6¡¯s AHAH.Whydid I enter in thissession?
10. 6 years of AJAX 2004 - 2005- 2006 ¨C 2007 ¨C 2008 - 2009 ¨C 2010Jesse James Garrett gives a name to this combination of tecnologies.
11. 6 years of AJAX 2004 - 2005 - 2006¨C 2007 ¨C 2008 - 2009 ¨C 2010
12. 6 years of AJAX 2004 - 2005 - 2006 ¨C 2007¨C 2008 - 2009 ¨C 2010Drupal 6 released!Includes jQuery for the first time.NathanHaug ¨C quicksketch ¨C developes AHAH features
13. 6 years of AJAX 2004 - 2005 - 2006 ¨C 2007 ¨C 2008- 2009 ¨C 2010CTools (Chaos Tools Suite) #26byEarl Miles ¨C merlinofchaosLow-level tools for developers Multi-step forms Plugins Exportables ¡One of themisAJAX responderbutunknown,undocumentedignored
15. 6 years of AJAX 2004 - 2005 - 2006 ¨C 2007 ¨C 2008 - 2009 ¨C 2010
16. AJAX ¡°old way¡±PHP SideJS Side Output a link witha CSS id/classBind the link.Make AjaxcallLoading..Callback functionthatreturns JSON/HTMLManage received data.Manipulate the DOMHandle AJAX errorsDrupal.behaviors
17. AJAX ¡°new way¡±PHP SideJS SideOutput a link with.ctools-use-ajax(.use-ajax in D7)Bind the link.Make AjaxcallLoading..Use macro commandslike:ctools_ajax_command_appendajax_command_append (in D7)Manage received data.Manipulate the DOMHandle AJAX errorsDrupal.behaviors
18. Why use the ¡°new way¡±?Adventages of beingpart of DrupalcoreStandarizedway of doingAjaxD7 ~ D6Gracefuldegradation.Identifyingajaxlinks.Lesscodetowrite/maintainLetAjax Framework takescare of Loading¡Allthejavascript.Drupal.behaviors()ErrorsdisplayWarmCache*