PolyGlot, Inc.

Javascript Class Emulation: Example Files

Bruce Wallace has developed a technique to emulate Java-like classes that works around the limitations of JavaScript. This page contains links to example files for articles in the AJAX from Scratch series.
NOTE: These example files were tested on Internet Explorer 6.0 & 7.0, Netscape 6.2 & 7.x & 8.1.2, SeaMonkey 1.1.2-7, Safari 3.0.4, Firefox 3.6.13

Source File: grvObject.js
(single inheritance)

Demonstration: grvObject Demo
Source File: grvClass.js
(single inheritance)

Demonstration: grvClass Demo
Source File: grvValidate.js
(single inheritance)

Demonstration: grvValidate Demo
Source File: grvObjects.js
(multiple inheritance)

Demonstration: grvObjects Demo
Source File: grvClasses.js
(multiple inheritance)

Demonstration: grvClasses Demo
Implementation Diagram: Traditional JavaScript
Implementation Diagram: GrvObject Platform

Last Revised: 1-May-2007
Copyright © 2006-2007 by PolyGlot, Inc.