AJAX from Scratch
The AJAX from Scratch
article series describes fundamental techniques needed to develop AJAX Rich
Internet Applications in JavaScript from scratch. Each article focuses on a
particular (usually little-covered) aspect of developing browser-side
functionality without the use of commercial or server-based frameworks. The
techniques described are additionally illustrated in Gravey, a small,
but real-world, stand-alone, server-agnostic, JavaScript framework for AJAX and RIAs.
- Examples
for Implementing MVC GUIs in JavaScript,
Using Fat Client techniques in Web Applications.
TBD 2007, Gamelan.com /
Developer.com
With the increasingly popular AJAX and RIA paradigms,
the impetus to build complicated dynamic user interfaces is driving
developers to use the same design patterns (e.g. Model-View-Controller)
formerly tied to "fat" GUI clients.
- Examples
for
Implementing "Real" Classes in JavaScript,
And why your JavaScript classes probably aren't.
Feb 2007, Gamelan.com /
Developer.com
With the increasingly popular AJAX and RIA paradigms,
the impetus to build complicated dynamic user interfaces is driving
developers to use the same design patterns (e.g. Model-View-Controller)
formerly tied to "fat" GUI clients. All of these
design patterns expect the consistency of class-based objects
as provided in languages like C++ and Java. However, since JavaScript
does not use classes, Rich Internet Applications must emulate their
functionality. This article describes one such emulation technique
and demonstrates why many commonly used techniques fall short.
-
In part one,
an implementation was presented to emulate Java-like classes in JavaScript.
In this followup, that implementation is extended
to enable multiple inheritance. Both Java-like multiple Interface inheritance,
and multiple Class inheritance as found in other object oriented languages,
are made possible even though JavaScript supports only single Prototype inheritance.
A pragmatic approach is taken to resolve ambiguities that results in simple usable code.
- Examples
for
Implementing Mutual Exclusion in JavaScript,
Learn how to keep your XMLHttpRequests from colliding with your
rich Internet applications
March 2006, Gamelan.com /
Developer.com
With the increasingly popular AJAX paradigm, a browser page can make
requests for server data "in the background" while the user interface
continues to be active "in the foreground" causing problems by
accessing common data simultaneously. The classic solutions to this
concurrent programming problem are not supplied by JavaScript. This
article describes an implementation of a mutual exclusion mechanism
that works around the limitations of JavaScript.
Last Revised: 8-Feb-2007
Copyright © 2005-2007 by PolyGlot, Inc.