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

Foil 50 The Asynchronous JavaScript/Browser

From CPS616 Lectures on JavaScript CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. 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 Tue Feb 18 1997