Javascript/Functional UI

From Jonathan Gardner's Tech Wiki

Jump to: navigation, search

[edit] Introduction

I've recently discovered a way of building user interfaces with Javascript that doesn't follow MVC rules. It seems simpler and more flexible. It relies heavily on closures and anonymous functions. However, it is clear and precise.

[edit] General Concepts

[edit] Dialog Widget

Let's suppose you want to create a dialog. This dialog pops up when the user clicks a button. Here's one way to do it.

var dialog_el;
Personal tools