Writing various AJAX forms in Drupal 7 1. Overview of Form API 2. Ctools 2.1 Ctools features 3. Ajax 3.1 Ajax Forms in Drupal 4. Putting it all together.

Slides:



Advertisements
Similar presentations
AJAX Development By Gary Mandela December 26,
Advertisements

Edoclite and Managing Client Engagements What is Edoclite? How is it used at IU? Development Process?
Web Applications Development Using Coldbox Platform Eddie Johnston.
AJAX Technologies KAUNAS UNIVERSITY OF TECHNOLOGY MODULE: INFORMATION TECHNOLOGY GROUP: IF - 4/9 GROUP: VENTILIATORIAI
Introducing Mapbuilder Michael Adair Natural Resources Canada.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
AJAX & By – Anupama Sharma. Defining Ajax Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming together.
Collaborative Picture Gallery Project Presentation Amos Hersch Aviad Barzilai Supervisor Maxim Gurevitch Lab Chief Eng. Ilana David.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
AJAX Introduction Drupal Commerce Camp September 2011.
UNIT-V The MVC architecture and Struts Framework.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Pittsburgh Java User Group– Dec Java PureFaces: A JSF Framework Extension.
JavaScript & jQuery the missing manual Chapter 11
1 Ajax. 2 What’s Ajax? AJAX is a combination of a few technologies that has come together in the past few years AJAX used to be an acronym for Asynchronous.
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
XForms: A case study Rajiv Shivane & Pavitar Singh.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
StockWatch Developers: Nimrod Hagay Hagai Barkan Supervisors: Assaf Solomovitch Viktor Kulikov June 2009.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
JavaScript - A Web Script Language Fred Durao
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
-By V.Gouthaman. INTRODUCTION Ajax (shorthand for asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side.
XML & AJAX Khaled Al-Sham’aa. XML The Extensible Markup Language (XML) is a general-purpose specification for creating custom markup languages. It is.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
RIA and Web2.0 Development with no Coding Juan Camilo Ruiz Senior Product Manager Development Tools.
Ajax for Dynamic Web Development Gregory McChesney.
CS50 Week 9 Sam Green ’
Chapter 16: Ajax-Enabled Rich Internet Applications with XML and JSON TP2543 Web Programming Mohammad Faidzul Nasrudin.
Chaos tool suite's Form wizard tool. Who am I? oadaeh d.o UID: 4649 (10 years 1 month) Mass Contact, Basic webmail Live in: Las Vegas, NV Organizer of.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
 AJAX – Asynchronous JavaScript and XML  Ajax is used to develop fast dynamic web applications  Allows web pages to be updated asynchronously by transferring.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
1 What is JQuery. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax* interactions.
IT533 Lectures ASP.NET AJAX.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
JavaScript & Introduction to AJAX
Rich Internet Applications: Better Practices for Financial Services Stephen Turbek, Avenue A | Razorfish.
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Personalizing Web Sites Nasrullah. Understanding Profile The ASP.NET application service that enables you to store and retrieve information about users.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
Overview Web Technologies Computing Science Thompson Rivers University.
Flux & React Web Application Development Mark Repka, Rich McNeary, Steve Mueller.
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
Web Technologies Computing Science Thompson Rivers University
JavaScript and Ajax (Ajax Tutorial)
Google Web Toolkit Tutorial
Avraham Leff James T. Rayfield IBM T.J. Watson Research Center
Application with Cross-Platform GUI
Asynchronous Java script And XML Technology
By Gary Mandela December 26, 2006
AJAX.
Technologies and Tools
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
INFM 603 Main Class Project
Web Technologies Computing Science Thompson Rivers University
Web Client Side Technologies Raneem Qaddoura
Presentation transcript:

Writing various AJAX forms in Drupal 7

1. Overview of Form API 2. Ctools 2.1 Ctools features 3. Ajax 3.1 Ajax Forms in Drupal 4. Putting it all together (demo)

1. Overview of Form API - provides a collection of functions to enable the processing and display of HTML forms - these functions are used to achieve consistency in the form processing and presentation

1. Overview of Form API - define : - my_module_example_form() - alter : - my_module_example_form_alter() - validate : - my_module_example_form_validate() - submit : - my_module_example_form_submit()

1. Overview of Form API - basic function is drupal_get_form($form_id) which handles retrieving, processing, and displaying a rendered HTML form for modules automatically - drupal_form_submit($form_id, &$form_state) used to build and submit forms programmatically, without any user input

2. Ctools - a suit of APIs and tools to improve the developer Experience - it includes : - form tools - form wizard - modal dialog - plugins - exportables

2.1 Ctools features - Form tools : - tools to make it easier for forms to deal with Ajax - Form wizard : - an API to make multi-step forms much easier

2.1 Ctools features - Modal dialog : - tools to make it simple to put a form in a popup - Plugins : - tools to make it easy for modules to let other modules implement plugins from.inc files

3. Ajax - stands for Asynchronous JavaScript and XML - group of interrelated web development techniques used on the client side to create asynchronous web applications - result : web applications can send data in background without interfering with the display or behavior of the current page

3.1 Ajax Forms in Drupal - offer dynamic behavior with no page reloads - no Javascript code needs to be written - use the '#ajax' property on a form element to make it Ajax-enabled

3.1 Ajax Forms in Drupal - '#ajax' property has arguments : - 'callback' => function to call - 'wrapper' => element on which to operate - 'method' => what to do with the result - 'effect' => how to do the operation