This site is archived.

Developing flexible and modular JavaScript components

kkaefer's picture
Submitted by kkaefer on Tue, 07/29/2008 - 00:41.

Session recording

Attached files

Placement
Session time: 
08/30/2008 - 11:00 - 08/30/2008 - 12:00
Conference booklet summary and bio
Article for conference booklet: 
We'll discuss ways to develop reusable and flexible JavaScript components by leveraging JavaScript's full potential and using Drupal's lightweight JavaScript frameworks. We'll look at several JavaScript components and see how they were implemented and how they interact with each other. Creating stable and extensible JavaScript components is not only about knowing jQuery; in fact, jQuery is only one small piece in the overall picture. It is equally important to know how to structure objects, how to make them interact and to have a clearly outlined application flow.
Bios for conference booklet: 
Konstantin Käfer is currently studying IT Systems Engineering in Potsdam, Germany. He also works as a consultant for NowPublic, a large citizen journalism website using Drupal. He joined the Drupal community as a Google Summer of Code Student in 2006.

Overview

We'll discuss ways to develop reusable and flexible JavaScript components by leveraging JavaScript's full potential and using Drupal's lightweight JavaScript frameworks. We'll look at several JavaScript components and see how they were implemented and how they interact with each other.

Agenda

* The JavaScript widget skeleton
* Bootstrapping components with Drupal.behaviors
* Interaction with delegates
* Managing events
* Talking back home
* Making it themable and translatable

Goals

The session aims to create a better understanding of how JavaScript components can be built in a more modular and extensible way.

Resources

You should be familiar with JavaScript and jQuery.

jredding's picture

combined?

Could this be combined with the jQuery courses (particularly part 2)? if not how does it differ?

kkaefer's picture

It is different in that it

It is different in that it doesn't talk about jQuery specifically but about how to architect JavaScript widgets/components. I.e. not the actual implementation and how elements can be queried with jQuery etc. is shown but how objects can interact, extend, delegate and so on. Also, it'll explain how these widgets can be integrated with Drupal