HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 69 The Asynchronous JavaScript/Browser

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * See also color IMAGE

There are several Issues that are a bit tricky due to asynchronous (thread based!) processing in Browsers
This is seen in reloading JavaScript pages. This produces unclear results as different frames and associated JavaScript variables are set in adifferent order from that in which multi-frame system was built!
  • Often get "false" errors as variables not set "in time"
In self-documenting pages: one
  • First requests page to be loaded (say from top frame) by setting location property for frame.
  • The Javascript code in top continues without waiting for page to be loaded
  • Thus you need to know when information has been loaded -- this is purpose of top.AccumulateInfoPage('processit!'); call



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 Wed Feb 19 1997