DOM-1
|
« |
< | § | > |
Netscape CodeStock 1999
|
Controller code
|
// Establish a new data model
// and assign it to a new view.
function startController() {
... details later ... }
// Copy the specified dataset
// into the model.
function refreshModel(arraycurrent) {
... details later ... }
// This sample produces a 1-column table.
// Multi-column tables are more complex.
function createView(bodyelement, themodel) {
... details later ... }
// Refresh the model first, then the view.
function refreshView(dataset) {
... details later ... }
// One can also destroy HTML objects
// using the DOM.
function destroyView() {
... details later ... }
Copyright © 1999 General Picture . Permission granted to reproduce in whole or part without charge as long as http://www.generalpicture.com is cited as source.
|