HELP! * GREY=local LOCAL HTML version of Foils prepared 26 February 1996

Foil 17 Addition of Methods to Object Definitions

From CPS616 Lectures on JavaScript CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. by Geoffrey C. Fox * See also color IMAGE

Define a new function outside Display by
function LoadDisplay {
top.setframe(this.pagepointer,this.pageframe);
top.setframe(this.indexpointer,this.indexframe);
}
Add to Display definition after this.indexpointer = null;
this.LoadDisplay = LoadDisplay;
Now executing cps616.LoadDisplay(); // should load pages of CPS616 into their specified frames
General Syntax is:
Objectname.methodname = functionname;
where Objectname is an existing Object



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997